|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<HttpStatusCode>
net.craftforge.essential.controller.constants.HttpStatusCode
public enum HttpStatusCode
HTTP status codes with name.
| Method Summary | |
|---|---|
int |
getCode()
Gets the status code. |
HttpStatusCode |
getHttpStatusCode(int code)
Gets the HTTP status code enum for the given status code. |
String |
getName()
Gets the status name. |
static HttpStatusCode |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final HttpStatusCode Continue
public static final HttpStatusCode SwitchingProtocols
public static final HttpStatusCode Processing
public static final HttpStatusCode OK
public static final HttpStatusCode Created
public static final HttpStatusCode Accepted
public static final HttpStatusCode NonAuthoritativeInformation
public static final HttpStatusCode NoContent
public static final HttpStatusCode ResetContent
public static final HttpStatusCode PartialContent
public static final HttpStatusCode MultiStatus
public static final HttpStatusCode MultipleChoice
public static final HttpStatusCode MovedPermanently
public static final HttpStatusCode Found
public static final HttpStatusCode SeeOther
public static final HttpStatusCode NotModified
public static final HttpStatusCode UseProxy
public static final HttpStatusCode TemporaryRedirect
public static final HttpStatusCode BadRequest
public static final HttpStatusCode Unauthorized
public static final HttpStatusCode Forbidden
public static final HttpStatusCode NotFound
public static final HttpStatusCode MethodNotAllowed
public static final HttpStatusCode NotAcceptable
public static final HttpStatusCode ProxyAuthenticationRequired
public static final HttpStatusCode RequestTimeOut
public static final HttpStatusCode Conflict
public static final HttpStatusCode Gone
public static final HttpStatusCode LengthRequired
public static final HttpStatusCode PreconditionFailed
public static final HttpStatusCode RequestEntityTooLarge
public static final HttpStatusCode RequestURITooLong
public static final HttpStatusCode UnsupportedMediaType
public static final HttpStatusCode RequestedRangeNotSatisfiable
public static final HttpStatusCode ExpectationFailed
public static final HttpStatusCode ThereAreToManyConnectionsFromYourInternetAddress
public static final HttpStatusCode UnprocessableEntity
public static final HttpStatusCode Locked
public static final HttpStatusCode FailedDependency
public static final HttpStatusCode UnorderedCollection
public static final HttpStatusCode UpgradeRequired
public static final HttpStatusCode InternalServerError
public static final HttpStatusCode NotImplemented
public static final HttpStatusCode BadGateway
public static final HttpStatusCode ServiceUnavailable
public static final HttpStatusCode GatewayTimeOut
public static final HttpStatusCode HTTPVersionNotSupported
public static final HttpStatusCode VariantAlsoNegotiates
public static final HttpStatusCode InsufficientStorage
public static final HttpStatusCode BandwidthLimitExceeded
public static final HttpStatusCode NotExtended
| Method Detail |
|---|
public static HttpStatusCode[] values()
for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
public static HttpStatusCode 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 int getCode()
public String getName()
public HttpStatusCode getHttpStatusCode(int code)
code - The status code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||