@Contract(threading=IMMUTABLE) @Deprecated class DefaultRedirectStrategyAdaptor extends java.lang.Object implements RedirectStrategy
Modifier and Type | Field and Description |
---|---|
private RedirectHandler |
handler
Deprecated.
|
Constructor and Description |
---|
DefaultRedirectStrategyAdaptor(RedirectHandler handler)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
RedirectHandler |
getHandler()
Deprecated.
|
HttpUriRequest |
getRedirect(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Deprecated.
Determines the redirect location given the response from the target
server and the current request execution context and generates a new
request to be sent to the location.
|
boolean |
isRedirected(org.apache.http.HttpRequest request,
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 RedirectHandler handler
public DefaultRedirectStrategyAdaptor(RedirectHandler handler)
public boolean isRedirected(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
RedirectStrategy
isRedirected
in interface RedirectStrategy
request
- the executed requestresponse
- the response received from the target servercontext
- the context for the request executiontrue
if the request should be redirected, false
otherwiseorg.apache.http.ProtocolException
public HttpUriRequest getRedirect(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
RedirectStrategy
getRedirect
in interface RedirectStrategy
request
- the executed requestresponse
- the response received from the target servercontext
- the context for the request executionorg.apache.http.ProtocolException
public RedirectHandler getHandler()