|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.session.ManagerBase
org.apache.catalina.session.StandardManager
org.mobicents.servlet.sip.core.session.SipStandardManager
public class SipStandardManager
Extension of the Standard implementation of the Manager interface provided by Tomcat to be able to make the httpsession available as ConvergedHttpSession as for Spec JSR289 Section 13.5 and to handle management of sip sessions and sip application sessions for a given container (context)
| Field Summary | |
|---|---|
protected static java.lang.String |
info
The descriptive information about this implementation. |
| Fields inherited from class org.apache.catalina.session.StandardManager |
|---|
lifecycle, maxActiveSessions, name, pathname, processingTime, rejectedSessions, started |
| Fields inherited from class org.apache.catalina.session.ManagerBase |
|---|
algorithm, container, DEFAULT_ALGORITHM, devRandomSource, digest, distributable, domain, duplicates, entropy, expiredSessions, initialized, log, maxActive, maxInactiveInterval, mserver, oname, processExpiresFrequency, random, randomClass, randomIS, sessionAverageAliveTime, sessionCounter, sessionIdLength, sessionMaxAliveTime, sessions, sm, support |
| Fields inherited from interface org.apache.catalina.Lifecycle |
|---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Constructor Summary | |
|---|---|
SipStandardManager()
|
|
| Method Summary | |
|---|---|
void |
dumpSipApplicationSessions()
|
void |
dumpSipSessions()
|
MobicentsSipApplicationSession |
findSipApplicationSession(javax.servlet.http.HttpSession httpSession)
Retrieves the sip application session holding the converged http session in parameter |
java.util.Iterator<MobicentsSipApplicationSession> |
getAllSipApplicationSessions()
|
java.util.Iterator<MobicentsSipSession> |
getAllSipSessions()
|
org.apache.catalina.Container |
getContainer()
|
protected org.apache.catalina.session.StandardSession |
getNewSession()
|
MobicentsSipApplicationSession |
getSipApplicationSession(SipApplicationSessionKey key,
boolean create)
Retrieve a sip application session from its key. |
SipFactoryImpl |
getSipFactoryImpl()
|
MobicentsSipSession |
getSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession sipApplicationSessionImpl)
Retrieve a sip session from its key. |
void |
removeAllSessions()
Remove the sip sessions and sip application sessions |
MobicentsSipApplicationSession |
removeSipApplicationSession(SipApplicationSessionKey key)
Removes a sip application session from the manager by its key |
MobicentsSipSession |
removeSipSession(SipSessionKey key)
Removes a sip session from the manager by its key |
void |
setContainer(org.apache.catalina.Container container)
|
void |
setSipFactoryImpl(SipFactoryImpl sipFactoryImpl)
|
| Methods inherited from class org.apache.catalina.session.StandardManager |
|---|
addLifecycleListener, createSession, doLoad, doUnload, file, findLifecycleListeners, getInfo, getMaxActiveSessions, getName, getPathname, getRejectedSessions, load, propertyChange, removeLifecycleListener, setMaxActiveSessions, setPathname, setRejectedSessions, start, stop, unload |
| Methods inherited from class org.apache.catalina.session.ManagerBase |
|---|
add, addPropertyChangeListener, backgroundProcess, createEmptySession, createSession, destroy, expireSession, findSession, findSessions, generateSessionId, getActiveSessions, getAlgorithm, getClassName, getDigest, getDistributable, getDomain, getDuplicates, getEngine, getEntropy, getExpiredSessions, getJvmRoute, getLastAccessedTime, getMaxActive, getMaxInactiveInterval, getObjectName, getProcessExpiresFrequency, getProcessingTime, getRandom, getRandomBytes, getRandomClass, getRandomFile, getSession, getSessionAttribute, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, init, listSessionIds, postDeregister, postRegister, preDeregister, preRegister, processExpires, remove, removePropertyChangeListener, setAlgorithm, setDistributable, setDuplicates, setEntropy, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setRandomClass, setRandomFile, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.catalina.Manager |
|---|
add, addPropertyChangeListener, backgroundProcess, createEmptySession, createSession, createSession, findSession, findSessions, getActiveSessions, getDistributable, getExpiredSessions, getInfo, getMaxActive, getMaxInactiveInterval, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, load, remove, removePropertyChangeListener, setDistributable, setExpiredSessions, setMaxActive, setMaxInactiveInterval, setRejectedSessions, setSessionAverageAliveTime, setSessionCounter, setSessionIdLength, setSessionMaxAliveTime, unload |
| Field Detail |
|---|
protected static final java.lang.String info
| Constructor Detail |
|---|
public SipStandardManager()
sipFactoryImpl - | Method Detail |
|---|
protected org.apache.catalina.session.StandardSession getNewSession()
getNewSession in class org.apache.catalina.session.ManagerBasepublic SipFactoryImpl getSipFactoryImpl()
getSipFactoryImpl in interface SipManagerpublic void setSipFactoryImpl(SipFactoryImpl sipFactoryImpl)
setSipFactoryImpl in interface SipManagersipFactoryImpl - the SipFactoryImpl to setpublic org.apache.catalina.Container getContainer()
getContainer in interface org.apache.catalina.ManagergetContainer in class org.apache.catalina.session.ManagerBasepublic void setContainer(org.apache.catalina.Container container)
setContainer in interface org.apache.catalina.ManagersetContainer in class org.apache.catalina.session.StandardManagercontainer - the container to setpublic MobicentsSipSession removeSipSession(SipSessionKey key)
removeSipSession in interface SipManagerkey - the identifier for this session
public MobicentsSipApplicationSession removeSipApplicationSession(SipApplicationSessionKey key)
removeSipApplicationSession in interface SipManagerkey - the identifier for this session
public MobicentsSipApplicationSession getSipApplicationSession(SipApplicationSessionKey key,
boolean create)
getSipApplicationSession in interface SipManagerkey - the key identifying the sip application session to retrievecreate - if set to true, if no session has been found one will be created
public MobicentsSipSession getSipSession(SipSessionKey key,
boolean create,
SipFactoryImpl sipFactoryImpl,
MobicentsSipApplicationSession sipApplicationSessionImpl)
getSipSession in interface SipManagerkey - the key identifying the sip session to retrievecreate - if set to true, if no session has been found one will be createdsipFactoryImpl - needed only for sip session creation.sipApplicationSessionImpl - to associate the SipSession with if create is set to true, if false it won't be used
public java.util.Iterator<MobicentsSipSession> getAllSipSessions()
public java.util.Iterator<MobicentsSipApplicationSession> getAllSipApplicationSessions()
public MobicentsSipApplicationSession findSipApplicationSession(javax.servlet.http.HttpSession httpSession)
findSipApplicationSession in interface SipManagerpublic void dumpSipSessions()
dumpSipSessions in interface SipManagerpublic void dumpSipApplicationSessions()
dumpSipApplicationSessions in interface SipManagerpublic void removeAllSessions()
removeAllSessions in interface SipManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||