public enum HttpStatusCode extends java.lang.Enum<HttpStatusCode>
Copyright 2009 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
static HttpStatusCode |
forCode(int code)
Returns the
HttpStatusCode with a matching code. |
static HttpStatusCode |
forCode(java.lang.String string)
Returns the
HttpStatusCode with a matching code. |
static HttpStatusCode |
forDescription(java.lang.String description)
Returns the
HttpStatusCode with a matching description. |
int |
getCode()
Returns the code.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
toString() |
static HttpStatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusCode CONTINUE
public static final HttpStatusCode SWITCHING_PROTOCOLS
public static final HttpStatusCode OK
public static final HttpStatusCode CREATED
public static final HttpStatusCode ACCEPTED
public static final HttpStatusCode NON_AUTHORITATIVE_INFORMATION
public static final HttpStatusCode NO_CONTENT
public static final HttpStatusCode RESET_CONTENT
public static final HttpStatusCode PARTIAL_CONTENT
public static final HttpStatusCode MULTIPLE_CHOICES
public static final HttpStatusCode MOVED_PERMANENTLY
public static final HttpStatusCode FOUND
public static final HttpStatusCode SEE_OTHER
public static final HttpStatusCode NOT_MODIFIED
public static final HttpStatusCode USE_PROXY
public static final HttpStatusCode UNUSED_306
public static final HttpStatusCode TEMPORARY_REDIRECT
public static final HttpStatusCode BAD_REQUEST
public static final HttpStatusCode UNAUTHORIZED
public static final HttpStatusCode PAYMENT_REQUIRED
public static final HttpStatusCode FORBIDDEN
public static final HttpStatusCode NOT_FOUND
public static final HttpStatusCode METHOD_NOT_ALLOWED
public static final HttpStatusCode NOT_ACCEPTABLE
public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatusCode REQUEST_TIMEOUT
public static final HttpStatusCode CONFLICT
public static final HttpStatusCode GONE
public static final HttpStatusCode LENGTH_REQUIRED
public static final HttpStatusCode PRECONDITION_FAILED
public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE
public static final HttpStatusCode REQUEST_URI_TOO_LONG
public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE
public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatusCode EXPECTATION_FAILED
public static final HttpStatusCode INTERNAL_SERVER_ERROR
public static final HttpStatusCode NOT_IMPLEMENTED
public static final HttpStatusCode BAD_GATEWAY
public static final HttpStatusCode SERVICE_UNAVAILABLE
public static final HttpStatusCode GATEWAY_TIMEOUT
public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED
public static HttpStatusCode[] values()
for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
public static HttpStatusCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<HttpStatusCode>public int getCode()
public java.lang.String getDescription()
public static HttpStatusCode forDescription(java.lang.String description)
HttpStatusCode with a matching description.
Returns null if there is no match.description - - Text description to matchHttpStatusCode with passed description or null.public static HttpStatusCode forCode(java.lang.String string)
HttpStatusCode with a matching code.
Returns null if there is no match.code - - code to matchHttpStatusCode with passed code or null.public static HttpStatusCode forCode(int code)
HttpStatusCode with a matching code.
Returns null if there is no match.code - - code to matchHttpStatusCode with passed code or null.