org.jboss.web.tomcat.service.session
Class ConvergedSessionBasedClusteredSession

java.lang.Object
  extended by org.apache.catalina.session.StandardSession
      extended by org.jboss.web.tomcat.service.session.ClusteredSession
          extended by org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
              extended by org.jboss.web.tomcat.service.session.ConvergedSessionBasedClusteredSession
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.servlet.http.HttpSession, ConvergedHttpSession, org.apache.catalina.Session

public class ConvergedSessionBasedClusteredSession
extends org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
implements ConvergedHttpSession

Extension of the Jboss SessionBasedClusteredSession class so that applications are able to cast this session implementation to javax.servlet.sip.ConvergedHttpSession interface. Based on SessionBasedClusteredSession JBOSS AS 4.2.2 Tag

Author:
Jean Deruelle
See Also:
Serialized Form

Field Summary
protected  ConvergedSessionFacade facade
          The facade associated with this session.
protected static java.lang.String info
           
 
Fields inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
proxy_
 
Fields inherited from class org.jboss.web.tomcat.service.session.ClusteredSession
alwaysReplicateMetadata, excludedAttributes, firstAccess, hasActivationListener, invalidationPolicy, isSessionModifiedSinceLastSave, lastReplicated, log, maxUnreplicatedFactor, maxUnreplicatedInterval, outdatedTime, outdatedVersion, realId, replicationExcludes, sessionAttributesDirty, sessionMetadataDirty, sm, version
 
Fields inherited from class org.apache.catalina.session.StandardSession
accessCount, ACTIVITY_CHECK, attributes, authType, containerEventMethod, containerEventTypes, creationTime, EMPTY_ARRAY, expiring, id, isNew, isValid, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, sessionContext, support, thisAccessedTime
 
Fields inherited from interface org.apache.catalina.Session
SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT
 
Constructor Summary
ConvergedSessionBasedClusteredSession(JBossCacheSipManager manager, SipNetworkInterfaceManager sipNetworkInterfaceManager)
           
 
Method Summary
 java.lang.String encodeURL(java.lang.String url)
           
 java.lang.String encodeURL(java.lang.String relativePath, java.lang.String scheme)
           
 SipApplicationSession getApplicationSession()
           
protected  java.lang.Object getJBossInternalAttribute(java.lang.String arg0)
           
protected  java.util.Map getJBossInternalAttributes()
           
 boolean getReplicateSessionBody()
           
 javax.servlet.http.HttpSession getSession()
           
protected  void populateAttributes()
           
 void readExternal(java.io.ObjectInput arg0)
           
protected  java.lang.Object removeJBossInternalAttribute(java.lang.String arg0, boolean arg1, boolean arg2)
           
 void removeMyself()
           
 void removeMyselfLocal()
           
protected  java.lang.Object setJBossInternalAttribute(java.lang.String arg0, java.lang.Object arg1)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput arg0)
           
 
Methods inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
establishProxy, initAfterLoad, processSessionRepl, recycle, removeAttributeInternal, removeFromManager, removeJBossInternalAttribute
 
Methods inherited from class org.jboss.web.tomcat.service.session.ClusteredSession
access, activate, canAttributeBeReplicated, clearOutdated, endAccess, expire, expire, getAttribute, getAttributeInternal, getAttributeNames, getAttributesInternal, getExceedsMaxUnreplicatedInterval, getLastReplicated, getMaxUnreplicatedFactor, getMaxUnreplicatedInterval, getRealId, getSessionAttributesDirty, getSessionMetadataDirty, getUseJK, getVersion, incrementVersion, invalidate, isGetDirty, isMutable, isNewData, isOutdated, isSessionDirty, isValid, isValid, keys, passivate, removeAttributeInternal, removeAttributeInternal, removeExcludedAttributes, resetIdWithRouteInfo, sessionAttributesDirty, sessionDirty, sessionMetadataDirty, setAttribute, setCreationTime, setId, setInternalAttribute, setIsOutdated, setMaxInactiveInterval, setMaxUnreplicatedFactor, setMaxUnreplicatedInterval, setNew, setOutdatedVersion, setPrincipal, setValid, setVersion, updateAccessTimeFromOutdatedTime, updateLastReplicated
 
Methods inherited from class org.apache.catalina.session.StandardSession
addSessionListener, exclude, expire, fireContainerEvent, fireSessionEvent, getAuthType, getCreationTime, getId, getIdInternal, getInfo, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSessionContext, getValue, getValueNames, isNew, isValidInternal, putValue, readObject, readObjectData, removeAttribute, removeAttribute, removeNote, removeSessionListener, removeValue, setAttribute, setAuthType, setManager, setNote, tellNew, 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, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval
 

Field Detail

facade

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


info

protected static final java.lang.String info
See Also:
Constant Field Values
Constructor Detail

ConvergedSessionBasedClusteredSession

public ConvergedSessionBasedClusteredSession(JBossCacheSipManager manager,
                                             SipNetworkInterfaceManager sipNetworkInterfaceManager)
Parameters:
manager -
sipNetworkInterfaceManager -
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

toString

public java.lang.String toString()
Overrides:
toString in class org.jboss.web.tomcat.service.session.ClusteredSession

removeMyself

public void removeMyself()
Specified by:
removeMyself in class org.jboss.web.tomcat.service.session.ClusteredSession

removeMyselfLocal

public void removeMyselfLocal()
Specified by:
removeMyselfLocal in class org.jboss.web.tomcat.service.session.ClusteredSession

populateAttributes

protected void populateAttributes()
Specified by:
populateAttributes in class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession

getJBossInternalAttribute

protected java.lang.Object getJBossInternalAttribute(java.lang.String arg0)
Specified by:
getJBossInternalAttribute in class org.jboss.web.tomcat.service.session.ClusteredSession

removeJBossInternalAttribute

protected java.lang.Object removeJBossInternalAttribute(java.lang.String arg0,
                                                        boolean arg1,
                                                        boolean arg2)
Specified by:
removeJBossInternalAttribute in class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession

getJBossInternalAttributes

protected java.util.Map getJBossInternalAttributes()
Specified by:
getJBossInternalAttributes in class org.jboss.web.tomcat.service.session.ClusteredSession

setJBossInternalAttribute

protected java.lang.Object setJBossInternalAttribute(java.lang.String arg0,
                                                     java.lang.Object arg1)
Specified by:
setJBossInternalAttribute in class org.jboss.web.tomcat.service.session.ClusteredSession

readExternal

public void readExternal(java.io.ObjectInput arg0)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class org.jboss.web.tomcat.service.session.ClusteredSession
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput arg0)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class org.jboss.web.tomcat.service.session.ClusteredSession
Throws:
java.io.IOException

getReplicateSessionBody

public boolean getReplicateSessionBody()
Overrides:
getReplicateSessionBody in class org.jboss.web.tomcat.service.session.ClusteredSession


Copyright © 2009. All Rights Reserved.