CoherenceTM v3.3
Copyright© 2000-2007 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, Externalizable, Serializable
Direct Known Subclasses:
SplitHttpSessionModel

public class TraditionalHttpSessionModel
extends AbstractHttpSessionModel
implements 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, HttpSession session, String sId)
          Session creation constructor.
 
Method Summary
protected  AbstractHttpSessionModel.AttributeHolder instantiateAttributeHolder()
          Factory method: Instantiate an AttributeHolder for deserialization purposes.
protected  AbstractHttpSessionModel.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, bind, checkActive, checkUsable, checkValid, discard, enter, exit, flush, getActualAttributeMap, getAttribute, getAttributeMap, getAttributeNameArray, getCollection, getCreationTime, getDescription, getHttpSession, getId, getLastAccessedTime, getLastFlushedTime, getLocalAttributeMap, getMaxInactiveInterval, getReferenceCount, isActivatableAttributes, isActive, isExpired, isImmutable, isLocal, isModified, isNew, isOwnedByThisServer, isOwnedByThisThread, isUsable, isValid, logAttributeSerializationFailure, makeDistributed, passivate, readAttributes, readExternal, readExternal, removeAttribute, sessionReturned, setActivatableAttributes, setAttribute, setCollection, setId, setLastAccessedTime, setLastFlushedTime, setMaxInactiveInterval, setModified, setValid, 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,
                                   HttpSession session,
                                   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 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(String sName,
                                                                              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.3
Copyright© 2000-2007 by Oracle Corporation