Package org.apache.http.impl.client
Class LaxRedirectStrategy
- java.lang.Object
-
- org.apache.http.impl.client.DefaultRedirectStrategy
-
- org.apache.http.impl.client.LaxRedirectStrategy
-
- All Implemented Interfaces:
RedirectStrategy
@Immutable public class LaxRedirectStrategy extends DefaultRedirectStrategy
LaxRedirectStrategyimplementation that automatically redirects all HEAD, GET and POST requests. This strategy relaxes restrictions on automatic redirection of POST methods imposed by the HTTP specification.- Since:
- 4.2
-
-
Field Summary
-
Fields inherited from class org.apache.http.impl.client.DefaultRedirectStrategy
INSTANCE, REDIRECT_LOCATIONS
-
-
Constructor Summary
Constructors Constructor Description LaxRedirectStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisRedirectable(java.lang.String method)-
Methods inherited from class org.apache.http.impl.client.DefaultRedirectStrategy
createLocationURI, getLocationURI, getRedirect, isRedirected
-
-
-
-
Method Detail
-
isRedirectable
protected boolean isRedirectable(java.lang.String method)
- Overrides:
isRedirectablein classDefaultRedirectStrategy
-
-