Package org.jainslee.resources.sip
Class DialogID
- java.lang.Object
-
- org.jainslee.resources.sip.DialogID
-
- All Implemented Interfaces:
Serializable
public class DialogID extends Object implements Serializable
A SIP Dialog Identifier, consisting of Call-ID, local and remote tags.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCallID()
String
getLocalTag()
String
getRemoteTag()
int
hashCode()
boolean
hasLocalTag()
boolean
hasRemoteTag()
boolean
isHalfDialog()
A DialogID represents a "half-dialog" if either the local or remote tag is not set.DialogID
reverse()
void
toStream(DataOutput out)
String
toString()
String
toTrackingKey()
Returns a string representation of this DialogID, for use as a tracking key in the Session Ownership Facility
-
-
-
Constructor Detail
-
DialogID
public DialogID(DataInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
toStream
public void toStream(DataOutput out) throws IOException
- Throws:
IOException
-
isHalfDialog
public boolean isHalfDialog()
A DialogID represents a "half-dialog" if either the local or remote tag is not set.
-
getCallID
public String getCallID()
-
hasLocalTag
public boolean hasLocalTag()
-
getLocalTag
public String getLocalTag()
-
getRemoteTag
public String getRemoteTag()
-
hasRemoteTag
public boolean hasRemoteTag()
-
reverse
public DialogID reverse()
-
toTrackingKey
public String toTrackingKey()
Returns a string representation of this DialogID, for use as a tracking key in the Session Ownership Facility- Returns:
- the dialog ID formatted as if for a Target-Dialog header: call-id;local-tag=x;remote-tag=y.
-
-