Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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, java.io.Externalizable, java.io.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

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
`CONFIG_NO_LOCKING, ENTRY_ARRAY, m_fNoLock, MAGIC_V350, 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, isLastAccessTimeFlushRequired, isLocal, isModified, isNew, isOwnedByThisThread, isUsable, isValid, logAttributeSerializationFailure, makeDistributed, obtainThreadOwnership, passivate, qualifyAttributeName, readAttributes, readExternal, readExternal, releaseThreadOwnership, removeAttribute, sessionReturned, setActivatableAttributes, setAttribute, setCollection, setHttpSession, setId, setLastAccessedTime, setLastFlushedTime, setMaxInactiveInterval, setModified, setValid, setVersion, touch, unbind, unbind, writeAttributes, writeExternal, 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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.