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

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.ConvergedFieldBasedClusteredSession
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.servlet.http.HttpSession, ConvergedHttpSession, org.apache.catalina.Session, org.jboss.aspects.patterns.observable.Observer

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

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

Author:
Jean Deruelle
See Also:
Serialized Form

Field Summary
protected  java.util.Map attributes_
           
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
ConvergedFieldBasedClusteredSession(JBossCacheSipManager manager, SipNetworkInterfaceManager sipNetworkInterfaceManager)
           
 
Method Summary
protected  boolean canAttributeBeReplicated(java.lang.Object arg0)
           
 java.lang.String encodeURL(java.lang.String url)
           
 java.lang.String encodeURL(java.lang.String relativePath, java.lang.String scheme)
           
 void fireChange(org.jboss.aspects.patterns.observable.Subject arg0)
           
 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  boolean isMutable(java.lang.Object arg0)
           
protected  java.lang.String[] keys()
           
protected  void populateAttributes()
           
 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, processSessionRepl, removeAttributeInternal, removeFromManager, removeJBossInternalAttribute
 
Methods inherited from class org.jboss.web.tomcat.service.session.ClusteredSession
access, activate, clearOutdated, endAccess, expire, expire, getAttribute, getAttributeInternal, getAttributeNames, getAttributesInternal, getExceedsMaxUnreplicatedInterval, getLastReplicated, getMaxUnreplicatedFactor, getMaxUnreplicatedInterval, getRealId, getReplicateSessionBody, getSessionAttributesDirty, getSessionMetadataDirty, getUseJK, getVersion, incrementVersion, invalidate, isGetDirty, 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

attributes_

protected transient java.util.Map attributes_
Constructor Detail

ConvergedFieldBasedClusteredSession

public ConvergedFieldBasedClusteredSession(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

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

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

isMutable

protected boolean isMutable(java.lang.Object arg0)
Overrides:
isMutable 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

canAttributeBeReplicated

protected boolean canAttributeBeReplicated(java.lang.Object arg0)
Overrides:
canAttributeBeReplicated 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

fireChange

public void fireChange(org.jboss.aspects.patterns.observable.Subject arg0)
Specified by:
fireChange in interface org.jboss.aspects.patterns.observable.Observer


Copyright © 2008. All Rights Reserved.