public class SessionManagerUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SESSION_KEY_SEPARATOR |
static String |
TAG_PARAMETER_NAME |
| Constructor and Description |
|---|
SessionManagerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SipApplicationSessionKey |
getSipApplicationSessionKey(String applicationName,
String id,
String appGeneratedKey)
Computes the sip application session key from the input parameters.
|
static String |
getSipSessionHaKey(SipSessionKey key) |
static SipSessionKey |
getSipSessionKey(String applicationSessionId,
String applicationName,
javax.sip.message.Message message,
boolean inverted)
Computes the sip session key from the input parameters.
|
static SipSessionKey |
parseHaSipSessionKey(String sipSessionKey,
String sipAppSessionId,
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(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(String sipSessionKey)
Parse a sip application key that was previously generated and put as an http request param
through the encodeURL method of SipApplicationSession
|
public static final String TAG_PARAMETER_NAME
public static final String SESSION_KEY_SEPARATOR
public static SipSessionKey getSipSessionKey(String applicationSessionId, 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 - TODONullPointerException - if application name is nullpublic static SipApplicationSessionKey getSipApplicationSessionKey(String applicationName, String id, String appGeneratedKey)
applicationName - the name of the application that will be the second component of the keyid - the Id composing the first component of the keyNullPointerException - if one of the two parameters is nullpublic static SipApplicationSessionKey parseSipApplicationSessionKey(String sipApplicationKey) throws ParseException
sipApplicationKey - the stringified version of the sip application keyParseException - if the stringfied key cannot be parse to a valid keypublic static SipSessionKey parseSipSessionKey(String sipSessionKey) throws ParseException
sipSessionKey - the stringified version of the sip application keyParseException - if the stringfied key cannot be parse to a valid keypublic static SipSessionKey parseHaSipSessionKey(String sipSessionKey, String sipAppSessionId, String sipApplicationName) throws ParseException
sipSessionKey - the stringified version of the sip application keyParseException - if the stringfied key cannot be parse to a valid keypublic static String getSipSessionHaKey(SipSessionKey key)
Copyright © 2014. All Rights Reserved.