public static class StatusConsumer.StatusConsumerRedirectStrategy extends HttpUtils.MetaRefreshRedirectStrategy
HttpUtils.MetaRefreshRedirectStrategy
which disallows
all redirects and instead remembers a redirect for use later on.Constructor and Description |
---|
StatusConsumerRedirectStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRedirected(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
URL |
redirection() |
boolean |
wasRedirected() |
getRedirect
public StatusConsumerRedirectStrategy()
public boolean isRedirected(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
isRedirected
in interface org.apache.http.client.RedirectStrategy
isRedirected
in class HttpUtils.MetaRefreshRedirectStrategy
org.apache.http.ProtocolException
public boolean wasRedirected()
public URL redirection()