com.stackmob.sdk.util
Class Http

java.lang.Object
  extended by com.stackmob.sdk.util.Http

public class Http
extends Object


Field Summary
static String RetryAfterLowercase
           
static Integer SuccessResponseLowerLimit
           
static Integer SuccessResponseUpperLimit
           
static Integer UnavailableResponseCode
           
 
Constructor Summary
Http()
           
 
Method Summary
static boolean isRetryAfterHeader(String headerName)
           
static boolean isSuccess(Integer statusCode)
          determine whether a given status code represents a success
static boolean isUnavailable(Integer statusCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Http

public Http()
Method Detail

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.