network
Enum DSRequestType
java.lang.Object
java.lang.Enum<DSRequestType>
network.DSRequestType
- All Implemented Interfaces:
- Serializable, Comparable<DSRequestType>
enum DSRequestType
- extends Enum<DSRequestType>
The types of request that a device can send to the DiscoveryService. These are the requests described
in the DiscoveryService user stories.
Method Summary |
static DSRequestType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DSRequestType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
DEVICE_STATUS
public static final DSRequestType DEVICE_STATUS
DEVICE_CONN_INFO
public static final DSRequestType DEVICE_CONN_INFO
MARK_OFFLINE
public static final DSRequestType MARK_OFFLINE
PUBLISH_DEVICE
public static final DSRequestType PUBLISH_DEVICE
UNPUBLISH_DEVICE
public static final DSRequestType UNPUBLISH_DEVICE
KEEP_ALIVE_MSG
public static final DSRequestType KEEP_ALIVE_MSG
values
public static DSRequestType[] 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 (DSRequestType c : DSRequestType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DSRequestType 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 name
NullPointerException
- if the argument is null