Package com.tangosol.coherence.servlet
Class TraditionalHttpSessionModel
- java.lang.Object
-
- com.tangosol.util.Base
-
- com.tangosol.coherence.servlet.AbstractHttpSessionModel
-
- com.tangosol.coherence.servlet.TraditionalHttpSessionModel
-
- All Implemented Interfaces:
HttpSessionModel
,ExternalizableLite
,Externalizable
,Serializable
- Direct Known Subclasses:
SplitHttpSessionModel
public class TraditionalHttpSessionModel extends AbstractHttpSessionModel
An implementation of HttpSessionModel that is managed as a single unit, but optimizes the management of individual attributes within a session for purposes of serialization and deserialization. This is how HttpSession objects have 'traditionally' been implemented, hence the name.- Version:
- Coherence 2.3
- Author:
- cp 2003.08.21
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
-
Field Summary
-
Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel
CTX_OPTIMIZE_MODIFIED_SESSIONS, MAGIC_V350, STRING_ARRAY
-
-
Constructor Summary
Constructors Constructor Description TraditionalHttpSessionModel()
Default constructor for deserialization.TraditionalHttpSessionModel(TraditionalHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId)
Session creation constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttributeHolder
instantiateAttributeHolder()
Factory method: Instantiate an AttributeHolder for deserialization purposes.protected AttributeHolder
instantiateAttributeHolder(String sName, Object oValue)
Factory method: Instantiate an AttributeHolder to manage the passed value.String
toString()
Returns a string representation of the object.-
Methods inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel
activate, addEnteredThread, bind, checkActive, checkUsable, checkValid, discard, enter, exit, extractAttributeName, extractAttributeNames, flush, getActualAttributeMap, getAttribute, getAttributeMap, getAttributeNameArray, getCollection, getCreationTime, getDescription, getEnteredThreads, getHttpSession, getId, getLastAccessedTime, getLastFlushedTime, getLocalAttributeMap, getMaxInactiveInterval, getNewId, getReferenceCount, getThreadOwner, getVersion, isActivatableAttributes, isActive, isExpired, isExpiredInternal, isImmutable, isLastAccessTimeFlushRequired, isLocal, isModified, isNew, isOwnedByThisThread, isUsable, isValid, logAttributeSerializationFailure, obtainThreadOwnership, passivate, qualifyAttributeName, readAttributes, readExternal, readExternal, releaseThreadOwnership, removeAttribute, removeEnteredThread, resetReferenceCount, sessionReturned, setActivatableAttributes, setAttribute, setCollection, setHttpSession, setId, setLastAccessedTime, setLastFlushedTime, setMaxInactiveInterval, setModified, setNewId, setValid, setVersion, touch, unbind, unbind, writeAttributes, writeExternal, writeExternal
-
Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
-
-
-
Constructor Detail
-
TraditionalHttpSessionModel
public TraditionalHttpSessionModel()
Default constructor for deserialization.
-
TraditionalHttpSessionModel
public TraditionalHttpSessionModel(TraditionalHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId)
Session creation constructor.- Parameters:
collection
- the collection that manages this modelsession
- the session that delegates to this modelsId
- the session ID
-
-
Method Detail
-
instantiateAttributeHolder
protected AttributeHolder instantiateAttributeHolder()
Factory method: Instantiate an AttributeHolder for deserialization purposes.- Overrides:
instantiateAttributeHolder
in classAbstractHttpSessionModel
- Returns:
- a new AttributeHolder that can be deserialized into
-
instantiateAttributeHolder
protected AttributeHolder instantiateAttributeHolder(String sName, Object oValue)
Factory method: Instantiate an AttributeHolder to manage the passed value.- Overrides:
instantiateAttributeHolder
in classAbstractHttpSessionModel
- Parameters:
sName
- the attribute nameoValue
- a non-null Object value- Returns:
- a new AttributeHolder that will manage the passed value
-
toString
public String toString()
Returns a string representation of the object.- Overrides:
toString
in classAbstractHttpSessionModel
- Returns:
- a string representation of the object
-
-