public enum CoapCode extends Enum<CoapCode>
| 1 | GET | [RFCXXXX] | | 2 | POST | [RFCXXXX] | | 3 | PUT | [RFCXXXX] | | 4 | DELETE | [RFCXXXX] | | 65 | 2.01 Created | [RFCXXXX] | | 66 | 2.02 Deleted | [RFCXXXX] | | 67 | 2.03 Valid | [RFCXXXX] | | 68 | 2.04 Changed | [RFCXXXX] | | 69 | 2.05 Content | [RFCXXXX] | | 128 | 4.00 Bad Request | [RFCXXXX] | | 129 | 4.01 Unauthorized | [RFCXXXX] | | 130 | 4.02 Bad Option | [RFCXXXX] | | 131 | 4.03 Forbidden | [RFCXXXX] | | 132 | 4.04 Not Found | [RFCXXXX] | | 133 | 4.05 Method Not Allowed | [RFCXXXX] | | 134 | 4.06 Not Acceptable | [RFCXXXX] | | 140 | 4.12 Precondition Failed | [RFCXXXX] | | 141 | 4.13 Request Entity Too Large | [RFCXXXX] | | 143 | 4.15 Unsupported Content-Format | [RFCXXXX] | | 160 | 5.00 Internal Server Error | [RFCXXXX] | | 161 | 5.01 Not Implemented | [RFCXXXX] | | 162 | 5.02 Bad Gateway | [RFCXXXX] | | 163 | 5.03 Service Unavailable | [RFCXXXX] | | 164 | 5.04 Gateway Timeout | [RFCXXXX] | | 165 | 5.05 Proxying Not Supported | [RFCXXXX] |
Modifier and Type | Method and Description |
---|---|
static CoapCode |
fromCode(int code)
Find the
CoapCode for the given value code (null if not found) |
int |
getCode() |
String |
getText() |
static CoapCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoapCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoapCode GET
public static final CoapCode POST
public static final CoapCode PUT
public static final CoapCode DELETE
public static final CoapCode CREATED
public static final CoapCode DELETED
public static final CoapCode VALID
public static final CoapCode CHANGED
public static final CoapCode CONTENT
public static final CoapCode BAD_REQUEST
public static final CoapCode UNAUTHORIZED
public static final CoapCode BAD_OPTION
public static final CoapCode FORBIDDEN
public static final CoapCode NOT_FOUND
public static final CoapCode METHOD_NOT_ALLOWED
public static final CoapCode NOT_ACCEPTABLE
public static final CoapCode PRECONDITION_FAILED
public static final CoapCode REQUEST_ENTITY_TOO_LARGE
public static final CoapCode UNSUPPORTED_CONTENT_FORMAT
public static final CoapCode INTERNAL_SERVER_ERROR
public static final CoapCode NOT_IMPLEMENTED
public static final CoapCode BAD_GATEWAY
public static final CoapCode SERVICE_UNAVAILABLE
public static final CoapCode GATEWAY_TIMEOUT
public static final CoapCode PROXYING_NOT_SUPPORTED
public static CoapCode[] values()
for (CoapCode c : CoapCode.values()) System.out.println(c);
public static CoapCode 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 String getText()
public int getCode()
Copyright © 2009–2013 Apache MINA Project. All rights reserved.