public final class SipSessionKey extends Object implements MobicentsSipSessionKey, Serializable
Class representing the key (which will also be its id) for a sip session.
It is composed of the From Header parameter Tag, the To Header parameter tag, the Call-Id, the app session id and the application Name.
It is to be noted that the To Header parameter Tag will not be used in SipSessionKey comparison (equals() and hashcode() methods).
It will only be used to check if a new derived sip session needs to be created.
| Constructor and Description |
|---|
SipSessionKey(String fromTag,
String toTag,
String callId,
String applicationSessionId,
String applicationName) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeToString() |
boolean |
equals(Object obj) |
String |
getApplicationName() |
String |
getApplicationSessionId() |
String |
getCallId() |
String |
getFromTag() |
String |
getToTag() |
int |
hashCode() |
void |
setToString(String toString) |
void |
setToTag(String toTag,
boolean recomputeSessionId)
Sets the to tag on the key when we receive a response.
|
String |
toString() |
public String getFromTag()
getFromTag in interface MobicentsSipSessionKeypublic String getToTag()
getToTag in interface MobicentsSipSessionKeypublic String getCallId()
getCallId in interface MobicentsSipSessionKeypublic String getApplicationSessionId()
getApplicationSessionId in interface MobicentsSipSessionKeypublic String getApplicationName()
getApplicationName in interface MobicentsSipSessionKeypublic void setToTag(String toTag, boolean recomputeSessionId)
setToTag in interface MobicentsSipSessionKeytoTag - the toTag to setrecomputeSessionId - check if the sessionid need to be recomputedpublic void setToString(String toString)
toString - the toString to setpublic void computeToString()
Copyright © 2014. All Rights Reserved.