org.mobicents.mscontrol
Enum MsConnectionEventID

java.lang.Object
  extended by java.lang.Enum<MsConnectionEventID>
      extended by org.mobicents.mscontrol.MsConnectionEventID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MsConnectionEventID>

public enum MsConnectionEventID
extends java.lang.Enum<MsConnectionEventID>

Whenever the state of MsConnection changes MsConnectionEvent is fired and change in state is represented by MsConnectionEventID *


Enum Constant Summary
CONNECTION_CREATED
           
CONNECTION_DISCONNECTED
           
CONNECTION_FAILED
           
CONNECTION_HALF_OPEN
           
CONNECTION_OPEN
           
MODE_RECV_ONLY
           
MODE_SEND_ONLY
           
MODE_SEND_RECV
           
 
Method Summary
static MsConnectionEventID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MsConnectionEventID[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECTION_CREATED

public static final MsConnectionEventID CONNECTION_CREATED

CONNECTION_HALF_OPEN

public static final MsConnectionEventID CONNECTION_HALF_OPEN

CONNECTION_OPEN

public static final MsConnectionEventID CONNECTION_OPEN

CONNECTION_FAILED

public static final MsConnectionEventID CONNECTION_FAILED

CONNECTION_DISCONNECTED

public static final MsConnectionEventID CONNECTION_DISCONNECTED

MODE_SEND_RECV

public static final MsConnectionEventID MODE_SEND_RECV

MODE_SEND_ONLY

public static final MsConnectionEventID MODE_SEND_ONLY

MODE_RECV_ONLY

public static final MsConnectionEventID MODE_RECV_ONLY
Method Detail

values

public static final MsConnectionEventID[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MsConnectionEventID c : MsConnectionEventID.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MsConnectionEventID valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009. All Rights Reserved.