Package com.opencloud.sentinel.multileg
Enum InviteSessionPhase
- java.lang.Object
-
- java.lang.Enum<InviteSessionPhase>
-
- com.opencloud.sentinel.multileg.InviteSessionPhase
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InviteSessionPhase>
public enum InviteSessionPhase extends java.lang.Enum<InviteSessionPhase>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALERTING
A 180 Ringing response has been seen.ANSWERED
A final success response for the initial request has been seen.CONFIRMED
An ACK has been seen for the initial INVITE.INITIATING
The initial request has been seen but a dialog creating response has not.PRE_ALERTING
A dialog creating provisional response has been seen but not a 180 Ringing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAfter(InviteSessionPhase phase)
Indicates whether this phase occurs after the provided phase.boolean
isBefore(InviteSessionPhase phase)
Indicates whether this phase occurs before the provided phase.static InviteSessionPhase
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InviteSessionPhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIATING
public static final InviteSessionPhase INITIATING
The initial request has been seen but a dialog creating response has not.
-
PRE_ALERTING
public static final InviteSessionPhase PRE_ALERTING
A dialog creating provisional response has been seen but not a 180 Ringing.
-
ALERTING
public static final InviteSessionPhase ALERTING
A 180 Ringing response has been seen.
-
ANSWERED
public static final InviteSessionPhase ANSWERED
A final success response for the initial request has been seen.
-
CONFIRMED
public static final InviteSessionPhase CONFIRMED
An ACK has been seen for the initial INVITE.
-
-
Method Detail
-
values
public static InviteSessionPhase[] 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 (InviteSessionPhase c : InviteSessionPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InviteSessionPhase 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 namejava.lang.NullPointerException
- if the argument is null
-
isAfter
public boolean isAfter(InviteSessionPhase phase)
Indicates whether this phase occurs after the provided phase. If the provided phase is null, this always returns true.- Parameters:
phase
- the phase to compare this one to.- Returns:
- true if this phase occurs after the provided phase.
-
isBefore
public boolean isBefore(InviteSessionPhase phase)
Indicates whether this phase occurs before the provided phase. If the provided phase is null, this always returns false.- Parameters:
phase
- the phase to compare this one to.- Returns:
- true if this phase occurs before the provided phase.
-
-