Enum Dialog.State
-
- All Implemented Interfaces:
Serializable
,Comparable<Dialog.State>
- Enclosing interface:
- Dialog
public static enum Dialog.State extends Enum<Dialog.State>
An enumeration of the states a dialog may be in. This is loosely based on Q.774 section 3.3.3.2.6 ("Transaction state transition diagrams") with extra states for the cases where a dialog has begun to transition, but a Delimiter is needed to complete the transition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
The dialog is fully established.ACTIVE_PENDING
An Open Request has been received, and it has been accepted, but no Delimiter has been sent yet.IDLE
The dialog is inactive.INIT_RECEIVED
An Open Request has been received, but it has not been accepted or rejected yet.INIT_SENT
An Open Request + Delimiter has been sent, but no response has been received yet.INIT_SENT_PENDING
An Open Request has been sent, but no Delimiter has been sent yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Dialog.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Dialog.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final Dialog.State IDLE
The dialog is inactive. Q.774 state Idle.
-
INIT_SENT_PENDING
public static final Dialog.State INIT_SENT_PENDING
An Open Request has been sent, but no Delimiter has been sent yet. The dialog will transition to INIT_SENT when a Delimiter is sent, or will end when a Close is sent. Q.774 states Idle / Init Sent.
-
INIT_SENT
public static final Dialog.State INIT_SENT
An Open Request + Delimiter has been sent, but no response has been received yet. Q.774 state Init Sent.
-
INIT_RECEIVED
public static final Dialog.State INIT_RECEIVED
An Open Request has been received, but it has not been accepted or rejected yet. Q.774 state Init Received.
-
ACTIVE_PENDING
public static final Dialog.State ACTIVE_PENDING
An Open Request has been received, and it has been accepted, but no Delimiter has been sent yet. The dialog will transition to ACTIVE when a Delimiter is sent. Q.774 states Init Received / Active.
-
ACTIVE
public static final Dialog.State ACTIVE
The dialog is fully established. Q.774 state Active.
-
-
Method Detail
-
values
public static Dialog.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 (Dialog.State c : Dialog.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 Dialog.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
-
-