com.googlecode.mobilityrpc.protocol.pojo
Enum Envelope.MessageType

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


Enum Constant Summary
EXECUTION_REQUEST
           
EXECUTION_RESPONSE
           
PING
           
PONG
           
RESOURCE_REQUEST
           
RESOURCE_RESPONSE
           
 
Method Summary
static Envelope.MessageType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Envelope.MessageType[] 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

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

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 © 2016. All rights reserved.