|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HttpStatusCodes>
org.apache.olingo.odata2.api.commons.HttpStatusCodes
public enum HttpStatusCodes
HTTP status codes as defined in RFC2616-sec10 and additional status codes as defined in RFC6585
Method Summary | |
---|---|
static HttpStatusCodes |
fromStatusCode(int statusCode)
Convert a numerical status code into the corresponding status enum object. |
String |
getInfo()
Get the status code info. |
int |
getStatusCode()
Get the associated status code. |
String |
toString()
Get the status code info. |
static HttpStatusCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HttpStatusCodes[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HttpStatusCodes OK
public static final HttpStatusCodes CREATED
public static final HttpStatusCodes ACCEPTED
public static final HttpStatusCodes NO_CONTENT
public static final HttpStatusCodes RESET_CONTENT
public static final HttpStatusCodes PARTIAL_CONTENT
public static final HttpStatusCodes MOVED_PERMANENTLY
public static final HttpStatusCodes FOUND
public static final HttpStatusCodes SEE_OTHER
public static final HttpStatusCodes NOT_MODIFIED
public static final HttpStatusCodes USE_PROXY
public static final HttpStatusCodes TEMPORARY_REDIRECT
public static final HttpStatusCodes BAD_REQUEST
public static final HttpStatusCodes UNAUTHORIZED
public static final HttpStatusCodes PAYMENT_REQUIRED
public static final HttpStatusCodes FORBIDDEN
public static final HttpStatusCodes NOT_FOUND
public static final HttpStatusCodes METHOD_NOT_ALLOWED
public static final HttpStatusCodes NOT_ACCEPTABLE
public static final HttpStatusCodes PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatusCodes REQUEST_TIMEOUT
public static final HttpStatusCodes CONFLICT
public static final HttpStatusCodes GONE
public static final HttpStatusCodes LENGTH_REQUIRED
public static final HttpStatusCodes PRECONDITION_FAILED
public static final HttpStatusCodes REQUEST_ENTITY_TOO_LARGE
public static final HttpStatusCodes REQUEST_URI_TOO_LONG
public static final HttpStatusCodes UNSUPPORTED_MEDIA_TYPE
public static final HttpStatusCodes REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatusCodes EXPECTATION_FAILED
public static final HttpStatusCodes PRECONDITION_REQUIRED
public static final HttpStatusCodes INTERNAL_SERVER_ERROR
public static final HttpStatusCodes NOT_IMPLEMENTED
public static final HttpStatusCodes BAD_GATEWAY
public static final HttpStatusCodes SERVICE_UNAVAILABLE
public static final HttpStatusCodes GATEWAY_TIMEOUT
public static final HttpStatusCodes HTTP_VERSION_NOT_SUPPORTED
Method Detail |
---|
public static HttpStatusCodes[] values()
for (HttpStatusCodes c : HttpStatusCodes.values()) System.out.println(c);
public static HttpStatusCodes valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static HttpStatusCodes fromStatusCode(int statusCode)
statusCode
- the numerical status code
public int getStatusCode()
public String getInfo()
public String toString()
toString
in class Enum<HttpStatusCodes>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |