com.stackmob.sdk.net
Class HttpRedirectStrategy
java.lang.Object
org.apache.http.impl.client.DefaultRedirectStrategy
com.stackmob.sdk.net.HttpRedirectStrategy
- All Implemented Interfaces:
- org.apache.http.client.RedirectStrategy
public class HttpRedirectStrategy
- extends org.apache.http.impl.client.DefaultRedirectStrategy
| Fields inherited from class org.apache.http.impl.client.DefaultRedirectStrategy |
REDIRECT_LOCATIONS |
|
Method Summary |
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)
|
| Methods inherited from class org.apache.http.impl.client.DefaultRedirectStrategy |
createLocationURI, getLocationURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedirectStatusCode
public static final int RedirectStatusCode
- See Also:
- Constant Field Values
HttpRedirectStrategy
public HttpRedirectStrategy(StackMobRedirectedCallback redirectedCallback)
getRedirect
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
- Specified by:
getRedirect in interface org.apache.http.client.RedirectStrategy- Overrides:
getRedirect in class org.apache.http.impl.client.DefaultRedirectStrategy
- Throws:
org.apache.http.ProtocolException
isRedirected
public boolean isRedirected(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
- Specified by:
isRedirected in interface org.apache.http.client.RedirectStrategy- Overrides:
isRedirected in class org.apache.http.impl.client.DefaultRedirectStrategy
Copyright © 2011 StackMob. All Rights Reserved.