|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.core.session.SessionManagerUtil
public class SessionManagerUtil
This class is used as a central place to get a session be it a sip session or an sip application session. Here are the semantics of the key used for storing each kind of session :
| Field Summary | |
|---|---|
static java.lang.String |
SESSION_KEY_SEPARATOR
|
static java.lang.String |
TAG_PARAMETER_NAME
|
| Constructor Summary | |
|---|---|
SessionManagerUtil()
|
|
| Method Summary | |
|---|---|
static SipApplicationSessionKey |
getSipApplicationSessionKey(java.lang.String applicationName,
java.lang.String id)
Computes the sip application session key from the input parameters. |
static java.lang.String |
getSipSessionHaKey(SipSessionKey key)
|
static SipSessionKey |
getSipSessionKey(java.lang.String applicationSessionId,
java.lang.String applicationName,
javax.sip.message.Message message,
boolean inverted)
Computes the sip session key from the input parameters. |
static SipSessionKey |
parseHaSipSessionKey(java.lang.String sipSessionKey,
java.lang.String sipAppSessionId,
java.lang.String sipApplicationName)
Parse a sip application key that was previously generated and put as an http request param through the encodeURL method of SipApplicationSession |
static SipApplicationSessionKey |
parseSipApplicationSessionKey(java.lang.String sipApplicationKey)
Parse a sip application key that was previously generated and put as an http request param through the encodeURL method of SipApplicationSession |
static SipSessionKey |
parseSipSessionKey(java.lang.String sipSessionKey)
Parse a sip application key that was previously generated and put as an http request param through the encodeURL method of SipApplicationSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_PARAMETER_NAME
public static final java.lang.String SESSION_KEY_SEPARATOR
| Constructor Detail |
|---|
public SessionManagerUtil()
| Method Detail |
|---|
public static SipSessionKey getSipSessionKey(java.lang.String applicationSessionId,
java.lang.String applicationName,
javax.sip.message.Message message,
boolean inverted)
applicationName - the name of the application that will be the fifth component of the keymessage - the message to get the 4 components of the key frominverted - TODO
java.lang.NullPointerException - if application name is null
public static SipApplicationSessionKey getSipApplicationSessionKey(java.lang.String applicationName,
java.lang.String id)
applicationName - the name of the application that will be the second component of the keyid - the Id composing the first component of the key
java.lang.NullPointerException - if one of the two parameters is null
public static SipApplicationSessionKey parseSipApplicationSessionKey(java.lang.String sipApplicationKey)
throws java.text.ParseException
sipApplicationKey - the stringified version of the sip application key
java.text.ParseException - if the stringfied key cannot be parse to a valid key
public static SipSessionKey parseSipSessionKey(java.lang.String sipSessionKey)
throws java.text.ParseException
sipSessionKey - the stringified version of the sip application key
java.text.ParseException - if the stringfied key cannot be parse to a valid key
public static SipSessionKey parseHaSipSessionKey(java.lang.String sipSessionKey,
java.lang.String sipAppSessionId,
java.lang.String sipApplicationName)
throws java.text.ParseException
sipSessionKey - the stringified version of the sip application key
java.text.ParseException - if the stringfied key cannot be parse to a valid keypublic static java.lang.String getSipSessionHaKey(SipSessionKey key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||