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
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:
-
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
ConstructorsConstructorDescriptionDefault constructor for deserialization.TraditionalHttpSessionModel(TraditionalHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId) Session creation constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeHolderFactory method: Instantiate an AttributeHolder for deserialization purposes.protected AttributeHolderinstantiateAttributeHolder(String sName, Object oValue) Factory method: Instantiate an AttributeHolder to manage the passed value.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, writeExternalMethods 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, newHashMap, newHashMap, newHashSet, newHashSet, 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 Details
-
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 Details
-
instantiateAttributeHolder
Factory method: Instantiate an AttributeHolder for deserialization purposes.- Overrides:
instantiateAttributeHolderin classAbstractHttpSessionModel- Returns:
- a new AttributeHolder that can be deserialized into
-
instantiateAttributeHolder
Factory method: Instantiate an AttributeHolder to manage the passed value.- Overrides:
instantiateAttributeHolderin classAbstractHttpSessionModel- Parameters:
sName- the attribute nameoValue- a non-null Object value- Returns:
- a new AttributeHolder that will manage the passed value
-
toString
Returns a string representation of the object.- Overrides:
toStringin classAbstractHttpSessionModel- Returns:
- a string representation of the object
-