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

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.ConvergedAttributeBasedClusteredSession
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.servlet.http.HttpSession, ConvergedHttpSession, org.apache.catalina.Session

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

Extension of the Jboss AttributeBasedClusteredSession class so that applications are able to cast this session implementation to javax.servlet.sip.ConvergedHttpSession interface. Based on AttributeBasedClusteredSession 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
ConvergedAttributeBasedClusteredSession(JBossCacheSipManager manager, SipNetworkInterfaceManager sipNetworkInterfaceManager)
           
 
Method Summary
protected  void attributeChanged(java.lang.Object arg0, java.lang.Object arg1, int arg2)
           
protected  void clearAttrChangedMaps()
           
 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()
           
protected  java.util.Set getJBossInternalKeys()
           
 javax.servlet.http.HttpSession getSession()
           
protected  java.lang.String[] keys()
           
protected  void populateAttributes()
           
 void processSessionRepl()
           
 void recycle()
           
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()
           
 
Methods inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
establishProxy, initAfterLoad, 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, getReplicateSessionBody, getSessionAttributesDirty, getSessionMetadataDirty, getUseJK, getVersion, incrementVersion, invalidate, isGetDirty, isMutable, isNewData, isOutdated, isSessionDirty, isValid, isValid, passivate, readExternal, removeAttributeInternal, removeAttributeInternal, removeExcludedAttributes, resetIdWithRouteInfo, sessionAttributesDirty, sessionDirty, sessionMetadataDirty, setAttribute, setCreationTime, setId, setInternalAttribute, setIsOutdated, setMaxInactiveInterval, setMaxUnreplicatedFactor, setMaxUnreplicatedInterval, setNew, setOutdatedVersion, setPrincipal, setValid, setVersion, updateAccessTimeFromOutdatedTime, updateLastReplicated, writeExternal
 
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

ConvergedAttributeBasedClusteredSession

public ConvergedAttributeBasedClusteredSession(JBossCacheSipManager manager,
                                               SipNetworkInterfaceManager 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

recycle

public void recycle()
Specified by:
recycle in interface org.apache.catalina.Session
Overrides:
recycle in class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession

toString

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

processSessionRepl

public void processSessionRepl()
Overrides:
processSessionRepl in class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession

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

getJBossInternalKeys

protected java.util.Set getJBossInternalKeys()

keys

protected java.lang.String[] keys()
Overrides:
keys 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

attributeChanged

protected void attributeChanged(java.lang.Object arg0,
                                java.lang.Object arg1,
                                int arg2)

clearAttrChangedMaps

protected void clearAttrChangedMaps()


Copyright © 2009. All Rights Reserved.