com.stackmob.sdk.util
Class Http
java.lang.Object
com.stackmob.sdk.util.Http
public class Http
- extends Object
|
Constructor Summary |
Http()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SuccessResponseLowerLimit
public static final Integer SuccessResponseLowerLimit
SuccessResponseUpperLimit
public static final Integer SuccessResponseUpperLimit
UnavailableResponseCode
public static final Integer UnavailableResponseCode
RetryAfterLowercase
public static final String RetryAfterLowercase
- See Also:
- Constant Field Values
Http
public Http()
isSuccess
public static boolean isSuccess(Integer statusCode)
- determine whether a given status code represents a success
- Parameters:
statusCode - the status code to test
- Returns:
- true if it's a success, false otherwise
isUnavailable
public static boolean isUnavailable(Integer statusCode)
isRetryAfterHeader
public static boolean isRetryAfterHeader(String headerName)
Copyright © 2012 StackMob. All Rights Reserved.