DefaultRedirectStrategy.@Contract(threading=IMMUTABLE) @Deprecated public class DefaultRedirectHandler extends java.lang.Object implements RedirectHandler
RedirectHandler.| Modifier and Type | Field and Description |
|---|---|
private org.apache.commons.logging.Log |
log
Deprecated.
|
private static java.lang.String |
REDIRECT_LOCATIONS
Deprecated.
|
| Constructor and Description |
|---|
DefaultRedirectHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getLocationURI(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Deprecated.
Determines the location request is expected to be redirected to
given the response from the target server and the current request
execution context.
|
boolean |
isRedirectRequested(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Deprecated.
Determines if a request should be redirected to a new location
given the response from the target server.
|
private final org.apache.commons.logging.Log log
private static final java.lang.String REDIRECT_LOCATIONS
public boolean isRedirectRequested(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
RedirectHandlerisRedirectRequested in interface RedirectHandlerresponse - the response received from the target servercontext - the context for the request executiontrue if the request should be redirected, false
otherwisepublic java.net.URI getLocationURI(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
throws org.apache.http.ProtocolException
RedirectHandlergetLocationURI in interface RedirectHandlerresponse - the response received from the target servercontext - the context for the request executionorg.apache.http.ProtocolException