JAIN SIP API
v1.1 - 23rd June 2003

javax.sip
Class TransactionState

java.lang.Object
  |
  +--javax.sip.TransactionState
All Implemented Interfaces:
java.io.Serializable

public final class TransactionState
extends java.lang.Object
implements java.io.Serializable

This class contains the enumerations that define the underlying state of an existing transaction. SIP defines four types of transactions, these are Invite Client transactions, Invite Server transactions, Non-Invite Client transactions and Non-Invite Server transactions. There are six explicit states for the various transactions, namely:

For each specific transaction state machine, refer to RFC3261.

Since:
1.1
See Also:
Serialized Form

Field Summary
static int _CALLING
          This constant value indicates the internal value of the "Calling" constant.
static int _COMPLETED
          This constant value indicates the internal value of the "Completed" constant.
static int _CONFIRMED
          This constant value indicates the internal value of the "Confirmed" constant.
static int _PROCEEDING
          This constant value indicates the internal value of the "Proceeding" constant.
static int _TERMINATED
          This constant value indicates the internal value of the "Terminated" constant.
static int _TRYING
          This constant value indicates the internal value of the "Trying" constant.
static TransactionState CALLING
          This constant value indicates that the transaction state is "Calling".
static TransactionState COMPLETED
          This constant value indicates that the transaction state is "Completed".
static TransactionState CONFIRMED
          This constant value indicates that the transaction state is "Confirmed".
static TransactionState PROCEEDING
          This constant value indicates that the transaction state is "Proceeding".
static TransactionState TERMINATED
          This constant value indicates that the transaction state is "Terminated".
static TransactionState TRYING
          This constant value indicates that the transaction state is "Trying".
 
Method Summary
static TransactionState getObject(int transactionState)
          This method returns the object value of the TransactionState
 int getValue()
          This method returns the integer value of the TransactionState
 java.lang.String toString()
          This method returns a string version of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_CALLING

public static final int _CALLING
This constant value indicates the internal value of the "Calling" constant.
This constant has an integer value of 0.

See Also:
Constant Field Values

CALLING

public static final TransactionState CALLING
This constant value indicates that the transaction state is "Calling".


_TRYING

public static final int _TRYING
This constant value indicates the internal value of the "Trying" constant. This constant has an integer value of 1.

See Also:
Constant Field Values

TRYING

public static final TransactionState TRYING
This constant value indicates that the transaction state is "Trying".


_PROCEEDING

public static final int _PROCEEDING
This constant value indicates the internal value of the "Proceeding" constant.
This constant has an integer value of 2.

See Also:
Constant Field Values

PROCEEDING

public static final TransactionState PROCEEDING
This constant value indicates that the transaction state is "Proceeding".


_COMPLETED

public static final int _COMPLETED
This constant value indicates the internal value of the "Completed" constant.
This constant has an integer value of 3.

See Also:
Constant Field Values

COMPLETED

public static final TransactionState COMPLETED
This constant value indicates that the transaction state is "Completed".


_CONFIRMED

public static final int _CONFIRMED
This constant value indicates the internal value of the "Confirmed" constant.
This constant has an integer value of 4.

See Also:
Constant Field Values

CONFIRMED

public static final TransactionState CONFIRMED
This constant value indicates that the transaction state is "Confirmed".


_TERMINATED

public static final int _TERMINATED
This constant value indicates the internal value of the "Terminated" constant.
This constant has an integer value of 5.

See Also:
Constant Field Values

TERMINATED

public static final TransactionState TERMINATED
This constant value indicates that the transaction state is "Terminated".

Method Detail

getObject

public static TransactionState getObject(int transactionState)
This method returns the object value of the TransactionState

Returns:
The TransactionState Object

getValue

public int getValue()
This method returns the integer value of the TransactionState

Returns:
The integer value of the TransactionState

toString

public java.lang.String toString()
This method returns a string version of this class.

Overrides:
toString in class java.lang.Object
Returns:
The string version of the TransactionState

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems