Enum StatusMessage.Code
- java.lang.Object
-
- java.lang.Enum<StatusMessage.Code>
-
- org.drasyl.peer.connection.message.StatusMessage.Code
-
- All Implemented Interfaces:
Serializable
,Comparable<StatusMessage.Code>
- Enclosing class:
- StatusMessage
public static enum StatusMessage.Code extends Enum<StatusMessage.Code>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatusMessage.Code
from(int code)
int
getNumber()
static StatusMessage.Code
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatusMessage.Code[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATUS_CONTINUE
public static final StatusMessage.Code STATUS_CONTINUE
-
STATUS_SWITCHING_PROTOCOLS
public static final StatusMessage.Code STATUS_SWITCHING_PROTOCOLS
-
STATUS_OK
public static final StatusMessage.Code STATUS_OK
-
STATUS_CREATED
public static final StatusMessage.Code STATUS_CREATED
-
STATUS_ACCEPTED
public static final StatusMessage.Code STATUS_ACCEPTED
-
STATUS_NON_AUTHORITATIVE_INFORMATION
public static final StatusMessage.Code STATUS_NON_AUTHORITATIVE_INFORMATION
-
STATUS_NO_CONTENT
public static final StatusMessage.Code STATUS_NO_CONTENT
-
STATUS_RESET_CONTENT
public static final StatusMessage.Code STATUS_RESET_CONTENT
-
STATUS_PARTIAL_CONTENT
public static final StatusMessage.Code STATUS_PARTIAL_CONTENT
-
STATUS_MULTIPLE_CHOICES
public static final StatusMessage.Code STATUS_MULTIPLE_CHOICES
-
STATUS_MOVED_PERMANENTLY
public static final StatusMessage.Code STATUS_MOVED_PERMANENTLY
-
STATUS_FOUND
public static final StatusMessage.Code STATUS_FOUND
-
STATUS_SEE_OTHER
public static final StatusMessage.Code STATUS_SEE_OTHER
-
STATUS_NOT_MODIFIED
public static final StatusMessage.Code STATUS_NOT_MODIFIED
-
STATUS_USE_PROXY
public static final StatusMessage.Code STATUS_USE_PROXY
-
STATUS_TEMPORARY_REDIRECT
public static final StatusMessage.Code STATUS_TEMPORARY_REDIRECT
-
STATUS_BAD_REQUEST
public static final StatusMessage.Code STATUS_BAD_REQUEST
-
STATUS_UNAUTHORIZED
public static final StatusMessage.Code STATUS_UNAUTHORIZED
-
STATUS_PAYMENT_REQUIRED
public static final StatusMessage.Code STATUS_PAYMENT_REQUIRED
-
STATUS_FORBIDDEN
public static final StatusMessage.Code STATUS_FORBIDDEN
-
STATUS_NOT_FOUND
public static final StatusMessage.Code STATUS_NOT_FOUND
-
STATUS_METHOD_NOT_ALLOWED
public static final StatusMessage.Code STATUS_METHOD_NOT_ALLOWED
-
STATUS_NOT_ACCEPTABLE
public static final StatusMessage.Code STATUS_NOT_ACCEPTABLE
-
STATUS_PROXY_AUTHENTICATION_REQUIRED
public static final StatusMessage.Code STATUS_PROXY_AUTHENTICATION_REQUIRED
-
STATUS_REQUEST_TIMEOUT
public static final StatusMessage.Code STATUS_REQUEST_TIMEOUT
-
STATUS_CONFLICT
public static final StatusMessage.Code STATUS_CONFLICT
-
STATUS_GONE
public static final StatusMessage.Code STATUS_GONE
-
STATUS_LENGTH_REQUIRED
public static final StatusMessage.Code STATUS_LENGTH_REQUIRED
-
STATUS_PRECONDITION_FAILED
public static final StatusMessage.Code STATUS_PRECONDITION_FAILED
-
STATUS_PAYLOAD_TOO_LARGE
public static final StatusMessage.Code STATUS_PAYLOAD_TOO_LARGE
-
STATUS_URI_TOO_LONG
public static final StatusMessage.Code STATUS_URI_TOO_LONG
-
STATUS_UNSUPPORTED_MEDIA_TYPE
public static final StatusMessage.Code STATUS_UNSUPPORTED_MEDIA_TYPE
-
STATUS_RANGE_NOT_SATISFIABLE
public static final StatusMessage.Code STATUS_RANGE_NOT_SATISFIABLE
-
STATUS_EXPECTATION_FAILED
public static final StatusMessage.Code STATUS_EXPECTATION_FAILED
-
STATUS_IM_A_TEAPOT
public static final StatusMessage.Code STATUS_IM_A_TEAPOT
-
STATUS_UPGRADE_REQUIRED
public static final StatusMessage.Code STATUS_UPGRADE_REQUIRED
-
STATUS_INVALID_SIGNATURE
public static final StatusMessage.Code STATUS_INVALID_SIGNATURE
-
STATUS_INTERNAL_SERVER_ERROR
public static final StatusMessage.Code STATUS_INTERNAL_SERVER_ERROR
-
STATUS_NOT_IMPLEMENTED
public static final StatusMessage.Code STATUS_NOT_IMPLEMENTED
-
STATUS_BAD_GATEWAY
public static final StatusMessage.Code STATUS_BAD_GATEWAY
-
STATUS_SERVICE_UNAVAILABLE
public static final StatusMessage.Code STATUS_SERVICE_UNAVAILABLE
-
STATUS_GATEWAY_TIMEOUT
public static final StatusMessage.Code STATUS_GATEWAY_TIMEOUT
-
STATUS_HTTP_VERSION_NOT_SUPPORTED
public static final StatusMessage.Code STATUS_HTTP_VERSION_NOT_SUPPORTED
-
-
Method Detail
-
values
public static StatusMessage.Code[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StatusMessage.Code c : StatusMessage.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusMessage.Code valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public int getNumber()
-
from
public static StatusMessage.Code from(int code)
-
-