public class DeltaSession8
extends org.apache.catalina.session.StandardSession
implements org.apache.geode.DataSerializable, org.apache.geode.Delta, org.apache.geode.modules.gatewaydelta.GatewayDelta, org.apache.geode.internal.cache.lru.Sizeable, org.apache.geode.modules.session.catalina.DeltaSessionInterface
accessCount, ACTIVITY_CHECK, attributes, authType, creationTime, EMPTY_ARRAY, expiring, facade, id, isNew, isValid, LAST_ACCESS_AT_START, lastAccessedTime, listeners, manager, maxInactiveInterval, notes, principal, sessionContext, sm, STRICT_SERVLET_COMPLIANCE, support, thisAccessedTime| Constructor and Description |
|---|
DeltaSession8()
Construct a new
Session associated with no Manager. |
DeltaSession8(org.apache.catalina.Manager manager)
Construct a new Session associated with the specified Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
applyAttributeEvents(org.apache.geode.cache.Region<java.lang.String,org.apache.geode.modules.session.catalina.DeltaSessionInterface> region,
java.util.List<org.apache.geode.modules.session.catalina.internal.DeltaSessionAttributeEvent> events) |
void |
commit() |
void |
fromData(java.io.DataInput in) |
void |
fromDelta(java.io.DataInput in) |
java.lang.Object |
getAttribute(java.lang.String name) |
java.lang.String |
getContextName() |
org.apache.geode.modules.gatewaydelta.GatewayDeltaEvent |
getCurrentGatewayDeltaEvent() |
boolean |
getExpired() |
protected org.apache.geode.cache.Region<java.lang.String,javax.servlet.http.HttpSession> |
getOperatingRegion() |
java.security.Principal |
getPrincipal() |
protected java.util.concurrent.ConcurrentMap<java.lang.String,byte[]> |
getSerializedAttributes() |
javax.servlet.http.HttpSession |
getSession()
Return the
HttpSession for which this object is the facade. |
int |
getSizeInBytes() |
boolean |
hasDelta() |
void |
invalidate() |
boolean |
isCommitEnabled() |
void |
localDestroyAttribute(java.lang.String name) |
void |
localUpdateAttribute(java.lang.String name,
java.lang.Object value) |
void |
processExpired() |
protected java.util.concurrent.ConcurrentMap |
readInAttributes(java.io.DataInput in) |
void |
removeAttribute(java.lang.String name,
boolean notify) |
protected byte[] |
serialize(java.lang.Object obj) |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
boolean notify) |
void |
setCurrentGatewayDeltaEvent(org.apache.geode.modules.gatewaydelta.GatewayDeltaEvent currentGatewayDeltaEvent) |
void |
setMaxInactiveInterval(int interval) |
void |
setOwner(java.lang.Object manager) |
void |
setPrincipal(java.security.Principal principal) |
void |
toData(java.io.DataOutput out) |
void |
toDelta(java.io.DataOutput out) |
java.lang.String |
toString() |
access, activate, addSessionListener, doReadObject, doWriteObject, endAccess, exclude, expire, expire, fireSessionEvent, getAttributeNames, getAuthType, getCreationTime, getCreationTimeInternal, getId, getIdInternal, getIdleTime, getIdleTimeInternal, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getServletContext, getSessionContext, getThisAccessedTime, getThisAccessedTimeInternal, getValue, getValueNames, isAttributeDistributable, isNew, isValid, isValidInternal, keys, passivate, putValue, readObjectData, recycle, removeAttribute, removeAttributeInternal, removeNote, removeSessionListener, removeValue, setAttribute, setAuthType, setCreationTime, setId, setId, setManager, setNew, setNote, setValid, tellChangedSessionId, tellNew, writeObjectDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivate, isValidaccess, addSessionListener, endAccess, expire, getAuthType, getCreationTime, getCreationTimeInternal, getId, getIdInternal, getIdleTime, getIdleTimeInternal, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getThisAccessedTime, getThisAccessedTimeInternal, isAttributeDistributable, recycle, removeNote, removeSessionListener, setAuthType, setCreationTime, setId, setId, setManager, setNew, setNote, setValid, tellChangedSessionIdpublic DeltaSession8()
Session associated with no Manager. The
Manager will be assigned later using setOwner(Object).public DeltaSession8(org.apache.catalina.Manager manager)
manager - The manager with which this Session is associatedpublic javax.servlet.http.HttpSession getSession()
HttpSession for which this object is the facade.getSession in interface org.apache.catalina.SessiongetSession in class org.apache.catalina.session.StandardSessionpublic java.security.Principal getPrincipal()
getPrincipal in interface org.apache.catalina.SessiongetPrincipal in class org.apache.catalina.session.StandardSessionpublic void setPrincipal(java.security.Principal principal)
setPrincipal in interface org.apache.catalina.SessionsetPrincipal in class org.apache.catalina.session.StandardSessionprotected org.apache.geode.cache.Region<java.lang.String,javax.servlet.http.HttpSession> getOperatingRegion()
public boolean isCommitEnabled()
public org.apache.geode.modules.gatewaydelta.GatewayDeltaEvent getCurrentGatewayDeltaEvent()
getCurrentGatewayDeltaEvent in interface org.apache.geode.modules.gatewaydelta.GatewayDeltapublic void setCurrentGatewayDeltaEvent(org.apache.geode.modules.gatewaydelta.GatewayDeltaEvent currentGatewayDeltaEvent)
setCurrentGatewayDeltaEvent in interface org.apache.geode.modules.gatewaydelta.GatewayDeltapublic void setOwner(java.lang.Object manager)
setOwner in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic void setAttribute(java.lang.String name,
java.lang.Object value,
boolean notify)
setAttribute in class org.apache.catalina.session.StandardSessionpublic void removeAttribute(java.lang.String name,
boolean notify)
removeAttribute in class org.apache.catalina.session.StandardSessionpublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface javax.servlet.http.HttpSessiongetAttribute in class org.apache.catalina.session.StandardSessionpublic void invalidate()
invalidate in interface javax.servlet.http.HttpSessioninvalidate in class org.apache.catalina.session.StandardSessionpublic void processExpired()
processExpired in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionsetMaxInactiveInterval in interface org.apache.catalina.SessionsetMaxInactiveInterval in class org.apache.catalina.session.StandardSessionpublic void localUpdateAttribute(java.lang.String name,
java.lang.Object value)
localUpdateAttribute in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic void localDestroyAttribute(java.lang.String name)
localDestroyAttribute in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic void applyAttributeEvents(org.apache.geode.cache.Region<java.lang.String,org.apache.geode.modules.session.catalina.DeltaSessionInterface> region,
java.util.List<org.apache.geode.modules.session.catalina.internal.DeltaSessionAttributeEvent> events)
applyAttributeEvents in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic void commit()
commit in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic void abort()
abort in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic boolean getExpired()
getExpired in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic java.lang.String getContextName()
getContextName in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacepublic boolean hasDelta()
hasDelta in interface org.apache.geode.Deltapublic void toDelta(java.io.DataOutput out)
throws java.io.IOException
toDelta in interface org.apache.geode.Deltajava.io.IOExceptionpublic void fromDelta(java.io.DataInput in)
throws java.io.IOException,
org.apache.geode.InvalidDeltaException
fromDelta in interface org.apache.geode.Deltajava.io.IOExceptionorg.apache.geode.InvalidDeltaExceptionpublic void toData(java.io.DataOutput out)
throws java.io.IOException
toData in interface org.apache.geode.DataSerializabletoData in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacejava.io.IOExceptionpublic void fromData(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
fromData in interface org.apache.geode.DataSerializablefromData in interface org.apache.geode.modules.session.catalina.DeltaSessionInterfacejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int getSizeInBytes()
getSizeInBytes in interface org.apache.geode.internal.cache.lru.Sizeableprotected byte[] serialize(java.lang.Object obj)
public java.lang.String toString()
toString in class org.apache.catalina.session.StandardSessionprotected java.util.concurrent.ConcurrentMap<java.lang.String,byte[]> getSerializedAttributes()
protected java.util.concurrent.ConcurrentMap readInAttributes(java.io.DataInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException