public enum CoapOptionType extends Enum<CoapOptionType>
Enum Constant and Description |
---|
ACCEPT |
CONTENT_FORMAT |
ETAG |
IF_MATCH |
IF_NONE_MATCH |
LOCATION_PATH |
LOCATION_QUERY |
MAX_AGE |
OBSERVE |
PROXY_SCHEME |
PROXY_URI |
URI_HOST |
URI_PATH |
URI_PORT |
URI_QUERY |
Modifier and Type | Method and Description |
---|---|
static CoapOptionType |
fromCode(int code)
Find the
CoapOptionType for the given value code (null if not found) |
int |
getCode() |
static CoapOptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoapOptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoapOptionType IF_MATCH
public static final CoapOptionType URI_HOST
public static final CoapOptionType ETAG
public static final CoapOptionType IF_NONE_MATCH
public static final CoapOptionType OBSERVE
public static final CoapOptionType URI_PORT
public static final CoapOptionType LOCATION_PATH
public static final CoapOptionType URI_PATH
public static final CoapOptionType CONTENT_FORMAT
public static final CoapOptionType MAX_AGE
public static final CoapOptionType URI_QUERY
public static final CoapOptionType ACCEPT
public static final CoapOptionType LOCATION_QUERY
public static final CoapOptionType PROXY_URI
public static final CoapOptionType PROXY_SCHEME
public static CoapOptionType[] values()
for (CoapOptionType c : CoapOptionType.values()) System.out.println(c);
public static CoapOptionType 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 int getCode()
public static CoapOptionType fromCode(int code)
CoapOptionType
for the given value code (null
if not found)Copyright © 2009–2013 Apache MINA Project. All rights reserved.