|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.net.HttpRedirectHelper
public class HttpRedirectHelper
| Field Summary | |
|---|---|
static int |
RedirectStatusCode
|
| Constructor Summary | |
|---|---|
HttpRedirectHelper()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getNewLocation(java.util.Map<java.lang.String,java.lang.String> headers)
get the new request that represents the redirect if there is one |
static boolean |
isRedirected(int responseCode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RedirectStatusCode
| Constructor Detail |
|---|
public HttpRedirectHelper()
| Method Detail |
|---|
public static java.lang.String getNewLocation(java.util.Map<java.lang.String,java.lang.String> headers)
throws java.lang.Exception
headers - the headers from which to get the new loc
java.lang.Exception - if there was a problem getting the redirect location
java.net.URISyntaxException - if there is a problem parsing the redirect URLpublic static boolean isRedirected(int responseCode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||