CoherenceTM v3.4.2
Copyright© 2000-2009 by Oracle Corporation

com.tangosol.coherence.servlet
Class TraditionalHttpSessionModel

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.coherence.servlet.AbstractHttpSessionModel
          extended by com.tangosol.coherence.servlet.TraditionalHttpSessionModel
All Implemented Interfaces:
HttpSessionModel, ExternalizableLite, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
SplitHttpSessionModel

public class TraditionalHttpSessionModel
extends AbstractHttpSessionModel
implements java.io.Externalizable, ExternalizableLite

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

Nested Class Summary
 class TraditionalHttpSessionModel.OptimizedHolder
          An immutable object to hold attribute values and related information.
 
Nested classes/interfaces inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel
AbstractHttpSessionModel.AttributeHolder
 
Field Summary
 
Fields inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel
ENTRY_ARRAY, STRING_ARRAY
 
Constructor Summary
TraditionalHttpSessionModel()
          Default constructor for deserialization.
TraditionalHttpSessionModel(TraditionalHttpSessionCollection collection, javax.servlet.http.HttpSession session, java.lang.String sId)
          Session creation constructor.
 
Method Summary
protected  AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder()
          Factory method: Instantiate an AttributeHolder for deserialization purposes.
protected  AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder(java.lang.String sName, java.lang.Object oValue)
          Factory method: Instantiate an AttributeHolder to manage the passed value.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.tangosol.coherence.servlet.AbstractHttpSessionModel
activate, bind, checkActive, checkUsable, checkValid, discard, enter, exit, extractAttributeName, extractAttributeNames, flush, getActualAttributeMap, getAttribute, getAttributeMap, getAttributeNameArray, getCollection, getCreationTime, getDescription, getHttpSession, getId, getLastAccessedTime, getLastFlushedTime, getLocalAttributeMap, getMaxInactiveInterval, getReferenceCount, getVersion, isActivatableAttributes, isActive, isExpired, isImmutable, isLocal, isModified, isNew, isOwnedByThisServer, isOwnedByThisThread, isUsable, isValid, logAttributeSerializationFailure, makeDistributed, passivate, qualifyAttributeName, readAttributes, readExternal, readExternal, removeAttribute, sessionReturned, setActivatableAttributes, setAttribute, setCollection, setId, setLastAccessedTime, setLastFlushedTime, setMaxInactiveInterval, setModified, setValid, setVersion, touch, unbind, unbind, writeAttributes, writeExternal, writeExternal
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface com.tangosol.io.ExternalizableLite
readExternal, writeExternal
 

Constructor Detail

TraditionalHttpSessionModel

public TraditionalHttpSessionModel()
Default constructor for deserialization.


TraditionalHttpSessionModel

public TraditionalHttpSessionModel(TraditionalHttpSessionCollection collection,
                                   javax.servlet.http.HttpSession session,
                                   java.lang.String sId)
Session creation constructor.

Parameters:
collection - the collection that manages this model
session - the session that delegates to this model
sId - the session ID
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class AbstractHttpSessionModel
Returns:
a string representation of the object

instantiateAttributeHolder

protected AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder()
Factory method: Instantiate an AttributeHolder for deserialization purposes.

Overrides:
instantiateAttributeHolder in class AbstractHttpSessionModel
Returns:
a new AttributeHolder that can be deserialized into

instantiateAttributeHolder

protected AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder(java.lang.String sName,
                                                                              java.lang.Object oValue)
Factory method: Instantiate an AttributeHolder to manage the passed value.

Overrides:
instantiateAttributeHolder in class AbstractHttpSessionModel
Parameters:
sName - the attribute name
oValue - a non-null Object value
Returns:
a new AttributeHolder that will manage the passed value

CoherenceTM v3.4.2
Copyright© 2000-2009 by Oracle Corporation