Package org.jainslee.resources.sip
Enum SipSession.State
- java.lang.Object
-
- java.lang.Enum<SipSession.State>
-
- org.jainslee.resources.sip.SipSession.State
-
- All Implemented Interfaces:
Serializable
,Comparable<SipSession.State>
- Enclosing interface:
- SipSession
public static enum SipSession.State extends Enum<SipSession.State>
Describes the state of a SipSession's underlying SIP dialog.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIRMED
A dialog-creating 2xx response has been sent or received, confirming the SIP dialog.EARLY
A dialog-creating 1xx response has been sent or received, creating an early dialog.INITIAL
The SipSession has been created but no dialog-creating response has been seen yet, no SIP dialog exists.TERMINATED
A dialog-terminating request has been sent or received, terminating the SIP dialog.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isConfirmed()
boolean
isEarly()
boolean
isInitial()
boolean
isTerminated()
static SipSession.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static SipSession.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final SipSession.State INITIAL
The SipSession has been created but no dialog-creating response has been seen yet, no SIP dialog exists.
-
EARLY
public static final SipSession.State EARLY
A dialog-creating 1xx response has been sent or received, creating an early dialog.
-
CONFIRMED
public static final SipSession.State CONFIRMED
A dialog-creating 2xx response has been sent or received, confirming the SIP dialog.
-
TERMINATED
public static final SipSession.State TERMINATED
A dialog-terminating request has been sent or received, terminating the SIP dialog.
-
-
Method Detail
-
values
public static SipSession.State[] 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 (SipSession.State c : SipSession.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SipSession.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 nameNullPointerException
- if the argument is null
-
isInitial
public boolean isInitial()
-
isEarly
public boolean isEarly()
-
isConfirmed
public boolean isConfirmed()
-
isTerminated
public boolean isTerminated()
-
-