dk.i1.diameter.session
Enum BaseSession.State

Object
  extended by Enum<BaseSession.State>
      extended by dk.i1.diameter.session.BaseSession.State
All Implemented Interfaces:
java.io.Serializable, Comparable<BaseSession.State>
Enclosing class:
BaseSession

public static enum BaseSession.State
extends Enum<BaseSession.State>

The state of a session, as per RFC3588 section 8.1


Enum Constant Summary
discon
           
idle
           
open
           
pending
           
 
Method Summary
static BaseSession.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BaseSession.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

idle

public static final BaseSession.State idle

pending

public static final BaseSession.State pending

open

public static final BaseSession.State open

discon

public static final BaseSession.State discon
Method Detail

values

public static final BaseSession.State[] 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(BaseSession.State c : BaseSession.State.values())
        System.out.println(c);

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

valueOf

public static BaseSession.State 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