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.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 static java.lang.String[] excludedAttributes
           
protected  ConvergedSessionFacade facade
          The facade associated with this session.
protected  boolean firstAccess
           
protected  java.lang.Boolean hasActivationListener
           
protected static java.lang.String info
           
protected  int invalidationPolicy
           
protected  boolean isSessionModifiedSinceLastSave
           
protected  long lastReplicated
           
protected static org.jboss.logging.Logger log
           
protected  int maxUnreplicatedFactor
           
protected  long maxUnreplicatedInterval
           
protected  long outdatedTime
           
protected  int outdatedVersion
           
protected  java.lang.String realId
           
protected static java.util.Set replicationExcludes
           
protected  boolean sessionAttributesDirty
           
protected  boolean sessionMetadataDirty
           
protected static org.apache.catalina.util.StringManager sm
           
protected  int version
           
 
Fields inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
proxy_
 
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
 void access()
           
 void activate()
           
protected  void attributeChanged(java.lang.Object arg0, java.lang.Object arg1, int arg2)
           
protected  boolean canAttributeBeReplicated(java.lang.Object arg0)
           
protected  void clearAttrChangedMaps()
           
 void clearOutdated()
           
 java.lang.String encodeURL(java.lang.String url)
           
 java.lang.String encodeURL(java.lang.String relativePath, java.lang.String scheme)
           
 void endAccess()
           
 void expire(boolean arg0)
           
 void expire(boolean arg0, boolean arg1, boolean arg2)
           
 SipApplicationSession getApplicationSession()
           
 java.lang.Object getAttribute(java.lang.String arg0)
           
protected  java.lang.Object getAttributeInternal(java.lang.String arg0)
           
 java.util.Enumeration getAttributeNames()
           
protected  java.util.Map getAttributesInternal()
           
 boolean getExceedsMaxUnreplicatedInterval()
           
protected  java.lang.Object getJBossInternalAttribute(java.lang.String arg0)
           
protected  java.util.Map getJBossInternalAttributes()
           
protected  java.util.Set getJBossInternalKeys()
           
 long getLastReplicated()
           
 int getMaxUnreplicatedFactor()
           
 long getMaxUnreplicatedInterval()
           
 java.lang.String getRealId()
           
 boolean getReplicateSessionBody()
           
 javax.servlet.http.HttpSession getSession()
           
protected  boolean getSessionAttributesDirty()
           
protected  boolean getSessionMetadataDirty()
           
 boolean getUseJK()
           
 int getVersion()
           
 int incrementVersion()
           
 void invalidate()
           
protected  boolean isGetDirty(java.lang.Object arg0)
           
protected  boolean isMutable(java.lang.Object arg0)
           
 boolean isNewData(int arg0)
           
 boolean isOutdated()
           
 boolean isSessionDirty()
           
 boolean isValid()
           
 boolean isValid(boolean arg0)
           
protected  java.lang.String[] keys()
           
 void passivate()
           
protected  void populateAttributes()
           
 void processSessionRepl()
           
 void readExternal(java.io.ObjectInput arg0)
           
 void recycle()
           
protected  void removeAttributeInternal(java.lang.String arg0, boolean arg1)
           
protected  void removeAttributeInternal(java.lang.String arg0, boolean arg1, boolean arg2, boolean arg3)
           
protected static java.util.Map removeExcludedAttributes(java.util.Map arg0)
           
protected  java.lang.Object removeJBossInternalAttribute(java.lang.String arg0, boolean arg1, boolean arg2)
           
 void removeMyself()
           
 void removeMyselfLocal()
           
 void resetIdWithRouteInfo(java.lang.String arg0)
           
protected  void sessionAttributesDirty()
           
protected  void sessionDirty()
           
protected  void sessionMetadataDirty()
           
 void setAttribute(java.lang.String arg0, java.lang.Object arg1)
           
 void setCreationTime(long arg0)
           
 void setId(java.lang.String arg0)
           
protected  java.lang.Object setInternalAttribute(java.lang.String arg0, java.lang.Object arg1)
           
 void setIsOutdated(boolean arg0)
           
protected  java.lang.Object setJBossInternalAttribute(java.lang.String arg0, java.lang.Object arg1)
           
 void setMaxInactiveInterval(int arg0)
           
 void setMaxUnreplicatedFactor(int arg0)
           
 void setNew(boolean arg0)
           
 void setOutdatedVersion(int arg0)
           
 void setPrincipal(java.security.Principal arg0)
           
 void setValid(boolean arg0)
           
 void setVersion(int arg0)
           
 java.lang.String toString()
           
 void updateAccessTimeFromOutdatedTime()
           
 void updateLastReplicated()
           
 void writeExternal(java.io.ObjectOutput arg0)
           
 
Methods inherited from class org.jboss.web.tomcat.service.session.JBossCacheClusteredSession
establishProxy, initAfterLoad, removeAttributeInternal, removeFromManager, removeJBossInternalAttribute
 
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

log

protected static org.jboss.logging.Logger log

excludedAttributes

protected static final java.lang.String[] excludedAttributes

replicationExcludes

protected static final java.util.Set replicationExcludes

invalidationPolicy

protected int invalidationPolicy

isSessionModifiedSinceLastSave

protected transient boolean isSessionModifiedSinceLastSave

sessionMetadataDirty

protected transient boolean sessionMetadataDirty

sessionAttributesDirty

protected transient boolean sessionAttributesDirty

outdatedVersion

protected transient int outdatedVersion

outdatedTime

protected transient long outdatedTime

version

protected int version

realId

protected transient java.lang.String realId

lastReplicated

protected transient long lastReplicated

maxUnreplicatedFactor

protected transient int maxUnreplicatedFactor

maxUnreplicatedInterval

protected transient long maxUnreplicatedInterval

hasActivationListener

protected transient java.lang.Boolean hasActivationListener

firstAccess

protected transient boolean firstAccess

sm

protected static org.apache.catalina.util.StringManager sm
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()

processSessionRepl

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

removeMyself

public void removeMyself()

removeMyselfLocal

public void removeMyselfLocal()

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)

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()

getJBossInternalKeys

protected java.util.Set getJBossInternalKeys()

keys

protected java.lang.String[] keys()

setJBossInternalAttribute

protected java.lang.Object setJBossInternalAttribute(java.lang.String arg0,
                                                     java.lang.Object arg1)

attributeChanged

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

clearAttrChangedMaps

protected void clearAttrChangedMaps()

isOutdated

public boolean isOutdated()

setIsOutdated

public void setIsOutdated(boolean arg0)

setOutdatedVersion

public void setOutdatedVersion(int arg0)

clearOutdated

public void clearOutdated()

updateAccessTimeFromOutdatedTime

public void updateAccessTimeFromOutdatedTime()

getRealId

public java.lang.String getRealId()

resetIdWithRouteInfo

public void resetIdWithRouteInfo(java.lang.String arg0)

getUseJK

public boolean getUseJK()

isNewData

public boolean isNewData(int arg0)

getVersion

public int getVersion()

setVersion

public void setVersion(int arg0)

incrementVersion

public int incrementVersion()

getMaxUnreplicatedFactor

public int getMaxUnreplicatedFactor()

setMaxUnreplicatedFactor

public void setMaxUnreplicatedFactor(int arg0)

setMaxInactiveInterval

public void setMaxInactiveInterval(int arg0)
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

getLastReplicated

public long getLastReplicated()

updateLastReplicated

public void updateLastReplicated()

getMaxUnreplicatedInterval

public long getMaxUnreplicatedInterval()

getExceedsMaxUnreplicatedInterval

public boolean getExceedsMaxUnreplicatedInterval()

access

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

endAccess

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

getAttribute

public java.lang.Object getAttribute(java.lang.String arg0)
Specified by:
getAttribute in interface javax.servlet.http.HttpSession
Overrides:
getAttribute in class org.apache.catalina.session.StandardSession

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession
Overrides:
getAttributeNames in class org.apache.catalina.session.StandardSession

setAttribute

public void setAttribute(java.lang.String arg0,
                         java.lang.Object arg1)
Specified by:
setAttribute in interface javax.servlet.http.HttpSession
Overrides:
setAttribute in class org.apache.catalina.session.StandardSession

canAttributeBeReplicated

protected boolean canAttributeBeReplicated(java.lang.Object arg0)

invalidate

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

isValid

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

isValid

public boolean isValid(boolean arg0)

expire

public void expire(boolean arg0)
Overrides:
expire in class org.apache.catalina.session.StandardSession

expire

public void expire(boolean arg0,
                   boolean arg1,
                   boolean arg2)

passivate

public void passivate()
Overrides:
passivate in class org.apache.catalina.session.StandardSession

activate

public void activate()
Overrides:
activate in class org.apache.catalina.session.StandardSession

setCreationTime

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

setId

public void setId(java.lang.String arg0)
Specified by:
setId in interface org.apache.catalina.Session
Overrides:
setId in class org.apache.catalina.session.StandardSession

setPrincipal

public void setPrincipal(java.security.Principal arg0)
Specified by:
setPrincipal in interface org.apache.catalina.Session
Overrides:
setPrincipal in class org.apache.catalina.session.StandardSession

setNew

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

setValid

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

readExternal

public void readExternal(java.io.ObjectInput arg0)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
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
Throws:
java.io.IOException

removeExcludedAttributes

protected static java.util.Map removeExcludedAttributes(java.util.Map arg0)

removeAttributeInternal

protected void removeAttributeInternal(java.lang.String arg0,
                                       boolean arg1)
Overrides:
removeAttributeInternal in class org.apache.catalina.session.StandardSession

removeAttributeInternal

protected void removeAttributeInternal(java.lang.String arg0,
                                       boolean arg1,
                                       boolean arg2,
                                       boolean arg3)

getAttributeInternal

protected java.lang.Object getAttributeInternal(java.lang.String arg0)

getAttributesInternal

protected java.util.Map getAttributesInternal()

setInternalAttribute

protected java.lang.Object setInternalAttribute(java.lang.String arg0,
                                                java.lang.Object arg1)

sessionAttributesDirty

protected void sessionAttributesDirty()

getSessionAttributesDirty

protected boolean getSessionAttributesDirty()

sessionMetadataDirty

protected void sessionMetadataDirty()

getSessionMetadataDirty

protected boolean getSessionMetadataDirty()

sessionDirty

protected void sessionDirty()

isSessionDirty

public boolean isSessionDirty()

getReplicateSessionBody

public boolean getReplicateSessionBody()

isGetDirty

protected boolean isGetDirty(java.lang.Object arg0)

isMutable

protected boolean isMutable(java.lang.Object arg0)


Copyright © 2008. All Rights Reserved.