org.mobicents.servlet.sip.core.session
Class ConvergedStandardSession

java.lang.Object
  extended by org.apache.catalina.session.StandardSession
      extended by org.mobicents.servlet.sip.core.session.ConvergedStandardSession
All Implemented Interfaces:
java.io.Serializable, javax.servlet.http.HttpSession, ConvergedHttpSession, org.apache.catalina.Session, ConvergedSession

public class ConvergedStandardSession
extends org.apache.catalina.session.StandardSession
implements ConvergedSession

Extension of the Tomcat StandardSession class so that applications are able to cast session to javax.servlet.sip.ConvergedHttpSession interface.

Author:
Jean Deruelle
See Also:
Serialized Form

Field Summary
protected  ConvergedSessionFacade convergedFacade
          The facade associated with this session.
 
Fields inherited from class org.apache.catalina.session.StandardSession
accessCount, ACTIVITY_CHECK, attributes, authType, creationTime, EMPTY_ARRAY, excludedAttributes, expiring, facade, id, info, isNew, isValid, LAST_ACCESS_AT_START, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, sessionContext, sm, STRICT_SERVLET_COMPLIANCE, support, thisAccessedTime
 
Fields inherited from interface org.apache.catalina.Session
SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT
 
Constructor Summary
ConvergedStandardSession(SipManager manager)
           
 
Method Summary
 void access()
           
 java.lang.String encodeURL(java.lang.String url)
           
 java.lang.String encodeURL(java.lang.String relativePath, java.lang.String scheme)
           
 SipApplicationSession getApplicationSession()
           
 MobicentsSipApplicationSession getApplicationSession(boolean create)
           
 javax.servlet.http.HttpSession getSession()
           
 void invalidate()
           
 boolean isValidIntern()
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class org.apache.catalina.session.StandardSession
activate, addSessionListener, endAccess, exclude, expire, expire, fireContainerEvent, fireSessionEvent, getAttribute, getAttributeNames, getAuthType, getCreationTime, getCreationTimeInternal, getId, getIdInternal, getInfo, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSessionContext, getThisAccessedTime, getThisAccessedTimeInternal, getValue, getValueNames, isNew, isValid, isValidInternal, keys, passivate, putValue, readObject, readObjectData, recycle, removeAttribute, removeAttribute, removeAttributeInternal, removeNote, removeSessionListener, removeValue, setAttribute, setAttribute, setAuthType, setCreationTime, setId, setManager, setNew, setNote, setPrincipal, setValid, tellNew, toString, writeObject, writeObjectData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.servlet.http.HttpSession
getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, isNew, putValue, removeAttribute, removeValue, setAttribute
 

Field Detail

convergedFacade

protected transient ConvergedSessionFacade convergedFacade
The facade associated with this session. NOTE: This value is not included in the serialized version of this object.

Constructor Detail

ConvergedStandardSession

public ConvergedStandardSession(SipManager manager)
Parameters:
sessionManager -
Method Detail

getSession

public javax.servlet.http.HttpSession getSession()
Specified by:
getSession in interface org.apache.catalina.Session
Overrides:
getSession in class org.apache.catalina.session.StandardSession

encodeURL

public java.lang.String encodeURL(java.lang.String url)
Specified by:
encodeURL in interface ConvergedHttpSession

encodeURL

public java.lang.String encodeURL(java.lang.String relativePath,
                                  java.lang.String scheme)
Specified by:
encodeURL in interface ConvergedHttpSession

getApplicationSession

public SipApplicationSession getApplicationSession()
Specified by:
getApplicationSession in interface ConvergedHttpSession

getApplicationSession

public MobicentsSipApplicationSession getApplicationSession(boolean create)
Specified by:
getApplicationSession in interface ConvergedSession

isValidIntern

public boolean isValidIntern()
Specified by:
isValidIntern in interface ConvergedSession

invalidate

public void invalidate()
Specified by:
invalidate in interface javax.servlet.http.HttpSession
Overrides:
invalidate in class org.apache.catalina.session.StandardSession

access

public void access()
Specified by:
access in interface org.apache.catalina.Session
Overrides:
access in class org.apache.catalina.session.StandardSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession
Specified by:
setMaxInactiveInterval in interface org.apache.catalina.Session
Overrides:
setMaxInactiveInterval in class org.apache.catalina.session.StandardSession


Copyright © 2011. All Rights Reserved.