JSIP API v1.2
November 2006

javax.sip
Class DialogState

java.lang.Object
  extended by javax.sip.DialogState
All Implemented Interfaces:
java.io.Serializable

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

This class contains the enumerations that define the underlying state of an existing dialog. There are three explicit states for a dialog, namely:

Author:
BEA Systems, NIST
See Also:
Serialized Form

Field Summary
static int _COMPLETED
          Deprecated. Since v1.2. This state does not exist in a dialog.
static int _CONFIRMED
          This constant value indicates the internal value of the "Confirmed" constant.
static int _EARLY
          This constant value indicates the internal value of the "Early" constant.
static int _TERMINATED
          This constant value indicates the internal value of the "Terminated" constant.
static DialogState COMPLETED
          Deprecated. Since v1.2. This state does not exist in a dialog.
static DialogState CONFIRMED
          This constant value indicates that the dialog state is "Confirmed".
static DialogState EARLY
          This constant value indicates that the dialog state is "Early".
static DialogState TERMINATED
          This constant value indicates that the dialog state is "Terminated".
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare this dialog state for equality with another.
static DialogState getObject(int dialogState)
          This method returns the object value of the DialogState
 int getValue()
          This method returns the integer value of the DialogState
 int hashCode()
          Get a hash code value for this dialog state.
 java.lang.String toString()
          This method returns a string version of this class.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_EARLY

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

See Also:
Constant Field Values

EARLY

public static final DialogState EARLY
This constant value indicates that the dialog state is "Early".


_CONFIRMED

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

See Also:
Constant Field Values

CONFIRMED

public static final DialogState CONFIRMED
This constant value indicates that the dialog state is "Confirmed".


_COMPLETED

public static final int _COMPLETED
Deprecated. Since v1.2. This state does not exist in a dialog.
This constant value indicates the internal value of the "Completed" constant.
This constant has an integer value of 2.

See Also:
Constant Field Values

COMPLETED

public static final DialogState COMPLETED
Deprecated. Since v1.2. This state does not exist in a dialog.
This constant value indicates that the dialog state is "Completed".


_TERMINATED

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

See Also:
Constant Field Values

TERMINATED

public static final DialogState TERMINATED
This constant value indicates that the dialog state is "Terminated".

Method Detail

getObject

public static DialogState getObject(int dialogState)
This method returns the object value of the DialogState

Parameters:
dialogState - The integer value of the DialogState
Returns:
The DialogState Object

getValue

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

Returns:
The integer value of the DialogState

equals

public boolean equals(java.lang.Object obj)
Compare this dialog state for equality with another.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare this with.
Returns:
true if obj is an instance of this class representing the same dialog state as this, false otherwise.
Since:
1.2

hashCode

public int hashCode()
Get a hash code value for this dialog state.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value.
Since:
1.2

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 DialogState

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems