public static class HttpUtils.MetaRefreshRedirectStrategy extends org.apache.http.impl.client.DefaultRedirectStrategy
RedirectStrategy
that can deal with meta-refresh style
redirectionConstructor and Description |
---|
MetaRefreshRedirectStrategy() |
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.methods.HttpUriRequest |
getRedirect(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
boolean |
isRedirected(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context) |
public MetaRefreshRedirectStrategy()
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 org.apache.http.impl.client.DefaultRedirectStrategy
org.apache.http.ProtocolException
public org.apache.http.client.methods.HttpUriRequest getRedirect(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.ProtocolException
getRedirect
in interface org.apache.http.client.RedirectStrategy
getRedirect
in class org.apache.http.impl.client.DefaultRedirectStrategy
org.apache.http.ProtocolException