public enum HttpSuccessCode extends Enum<HttpSuccessCode> implements org.refcodes.mixin.StatusCodeAccessor<Integer>
HttpStatusCode
enumeration.org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC,B extends org.refcodes.mixin.StatusCodeAccessor.StatusCodeBuilder<SC,B>>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeMutator<SC>, org.refcodes.mixin.StatusCodeAccessor.StatusCodeProperty<SC>
Enum Constant and Description |
---|
ACCEPTED
202 Accepted (HTTP/1.0 - RFC 1945)
|
CREATED
201 Created (HTTP/1.0 - RFC 1945)
|
MULTI_STATUS
207 Multi-Status (WebDAV - RFC 2518) or 207 Partial Update OK (HTTP/1.1 -
draft-ietf-http-v11-spec-rev-01?)
|
NO_CONTENT
204 No Content (HTTP/1.0 - RFC 1945)
|
NON_AUTHORITATIVE_INFORMATION
203 Non Authoritative Information (HTTP/1.1 - RFC 2616)
|
OK
200 OK (HTTP/1.0 - RFC 1945)
|
PARTIAL_CONTENT
206 Partial Content (HTTP/1.1 - RFC 2616)
|
RESET_CONTENT
205 Reset Content (HTTP/1.1 - RFC 2616)
|
Modifier and Type | Method and Description |
---|---|
Integer |
getStatusCode() |
static HttpSuccessCode |
toHttpSuccessCode(int aHttpStatusCode)
Determines the HTTP success code from the given value by evaluating the
getStatusCode() property. |
static HttpSuccessCode |
toHttpSuccessCode(org.refcodes.mixin.StatusCodeAccessor<Integer> aHttpStatusCode)
Determines the HTTP success code from the given HTTP Status-Code property by
evaluating the
getStatusCode() property. |
static HttpSuccessCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpSuccessCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpSuccessCode OK
public static final HttpSuccessCode CREATED
public static final HttpSuccessCode ACCEPTED
public static final HttpSuccessCode NON_AUTHORITATIVE_INFORMATION
public static final HttpSuccessCode NO_CONTENT
public static final HttpSuccessCode RESET_CONTENT
public static final HttpSuccessCode PARTIAL_CONTENT
public static final HttpSuccessCode MULTI_STATUS
public static HttpSuccessCode[] values()
for (HttpSuccessCode c : HttpSuccessCode.values()) System.out.println(c);
public static HttpSuccessCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Integer getStatusCode()
getStatusCode
in interface org.refcodes.mixin.StatusCodeAccessor<Integer>
public static HttpSuccessCode toHttpSuccessCode(int aHttpStatusCode)
getStatusCode()
property.aHttpStatusCode
- The code from which to get the
HttpStatusCode
element.HttpStatusCode
element or null if none was
found.public static HttpSuccessCode toHttpSuccessCode(org.refcodes.mixin.StatusCodeAccessor<Integer> aHttpStatusCode)
getStatusCode()
property.aHttpStatusCode
- The code property from which
StatusCodeAccessor.getStatusCode()
to get the
HttpStatusCode
element.HttpStatusCode
element or null if none was
found.Copyright © 2017. All rights reserved.