network
Enum DSRequestType

java.lang.Object
  extended by java.lang.Enum<DSRequestType>
      extended by 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.


Enum Constant Summary
DEVICE_CONN_INFO
           
DEVICE_STATUS
           
KEEP_ALIVE_MSG
           
MARK_OFFLINE
           
PUBLISH_DEVICE
           
UNPUBLISH_DEVICE
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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