public class MonolithicHttpSessionModel extends AbstractHttpSessionModel
Base.LoggingWriter, Base.StackFrameCTX_OPTIMIZE_MODIFIED_SESSIONS, MAGIC_V350, STRING_ARRAY| Constructor and Description |
|---|
MonolithicHttpSessionModel()
Default constructor for deserialization.
|
MonolithicHttpSessionModel(MonolithicHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId)
Session creation constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map |
ensureAttributeSerializationFailureMap()
Ensure that the map of attributes that cannot be written exists, creating it if necessary, and return it.
|
protected void |
enter()
Increment the usage count of the session by this thread.
|
protected void |
enterWriteAttributes()
Specify that the attributes are now being written.
|
protected Map |
getAttributeSerializationFailureMap()
Get the map of attributes that cannot be written.
|
protected boolean |
isWritingAttributes()
Determine if the attributes are currently being written.
|
protected void |
leaveWriteAttributes()
Specify that the attributes are no longer being written.
|
protected void |
logAttributeSerializationFailure(AttributeHolder holder, Throwable e)
Log a serialization failure for an attribute holder.
|
protected void |
readAttributes(DataInput in)
Helper to read the session attributes from a stream.
|
protected void |
setAttributeSerializationFailureMap(Map mapFailures)
Set the map of attributes that cannot be written.
|
String |
toString()
Returns a string representation of the object.
|
protected void |
writeAttributes(DataOutput out)
Helper to write the session attributes to a stream.
|
activate, addEnteredThread, bind, checkActive, checkUsable, checkValid, discard, exit, extractAttributeName, extractAttributeNames, flush, getActualAttributeMap, getAttribute, getAttributeMap, getAttributeNameArray, getCollection, getCreationTime, getDescription, getEnteredThreads, getHttpSession, getId, getLastAccessedTime, getLastFlushedTime, getLocalAttributeMap, getMaxInactiveInterval, getNewId, getReferenceCount, getThreadOwner, getVersion, instantiateAttributeHolder, instantiateAttributeHolder, isActivatableAttributes, isActive, isExpired, isExpiredInternal, isImmutable, isLastAccessTimeFlushRequired, isLocal, isModified, isNew, isOwnedByThisThread, isUsable, isValid, obtainThreadOwnership, passivate, qualifyAttributeName, readExternal, readExternal, releaseThreadOwnership, removeAttribute, removeEnteredThread, sessionReturned, setActivatableAttributes, setAttribute, setCollection, setHttpSession, setId, setLastAccessedTime, setLastFlushedTime, setMaxInactiveInterval, setModified, setNewId, setValid, setVersion, touch, unbind, unbind, writeExternal, writeExternalazzert, 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, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, 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, 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, waitpublic MonolithicHttpSessionModel()
public MonolithicHttpSessionModel(MonolithicHttpSessionCollection collection, javax.servlet.http.HttpSession session, String sId)
collection - the collection that manages this modelsession - the session that delegates to this modelsId - the session IDprotected void readAttributes(DataInput in) throws IOException
readAttributes in class AbstractHttpSessionModelin - the stream to read data from in order to restore the objectIOException - if an I/O exception occursprotected void writeAttributes(DataOutput out) throws IOException
writeAttributes in class AbstractHttpSessionModelout - the stream to write the object toIOException - if an I/O exception occursprotected void enterWriteAttributes()
protected void leaveWriteAttributes()
protected boolean isWritingAttributes()
writeAttributes(java.io.DataOutput) processing is occurringprotected Map getAttributeSerializationFailureMap()
protected void setAttributeSerializationFailureMap(Map mapFailures)
mapFailures - the mapprotected Map ensureAttributeSerializationFailureMap()
protected void logAttributeSerializationFailure(AttributeHolder holder, Throwable e)
logAttributeSerializationFailure in class AbstractHttpSessionModelholder - the attribute holder that failed to serialize its valuee - the throwable object that resulted from the serialization failureprotected void enter()
AbstractHttpSessionModelThis method may only be called by a thread that owns this model. See AbstractHttpSessionCollection.obtainThreadOwnership(java.lang.String).
enter in class AbstractHttpSessionModelpublic String toString()
toString in class AbstractHttpSessionModel