com.googlecode.mobilityrpc.protocol.pojo
Enum Envelope.MessageType
java.lang.Object
java.lang.Enum<Envelope.MessageType>
com.googlecode.mobilityrpc.protocol.pojo.Envelope.MessageType
- All Implemented Interfaces:
- Serializable, Comparable<Envelope.MessageType>
- Enclosing class:
- Envelope
public static enum Envelope.MessageType
- extends Enum<Envelope.MessageType>
EXECUTION_REQUEST
public static final Envelope.MessageType EXECUTION_REQUEST
EXECUTION_RESPONSE
public static final Envelope.MessageType EXECUTION_RESPONSE
RESOURCE_REQUEST
public static final Envelope.MessageType RESOURCE_REQUEST
RESOURCE_RESPONSE
public static final Envelope.MessageType RESOURCE_RESPONSE
PING
public static final Envelope.MessageType PING
PONG
public static final Envelope.MessageType PONG
values
public static Envelope.MessageType[] 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 (Envelope.MessageType c : Envelope.MessageType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Envelope.MessageType 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
Copyright © 2012. All Rights Reserved.