org.apache.beehive.netui.pageflow.scoping.internal
Class ScopedSession

Object
  extended by AttributeContainer
      extended by ScopedAttributeContainer
          extended by ScopedSession
All Implemented Interfaces:
Serializable, HttpSession

public class ScopedSession
extends ScopedAttributeContainer
implements HttpSession, Serializable

A wrapper around HttpSession, associated with a given scope-key. All calls to setAttribute, getAttribute, removeAttribute, etc. are scoped to this object, while most other functionality delegates to the wrapped HttpSession.

See Also:
Serialized Form

Constructor Summary
ScopedSession()
          This constructor exists only for deserialization.
ScopedSession(HttpSession session, ServletContext cxt, Object scopeKey)
           
 
Method Summary
 long getCreationTime()
           
 String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 HttpSession getOuterSession()
          Returns the real (outer) HttpSession.
 ServletContext getServletContext()
           
 HttpSessionContext getSessionContext()
           
 Object getValue(String s)
           
 String[] getValueNames()
           
 void invalidate()
           
 boolean isNew()
           
 void putValue(String s, Object o)
           
 void removeValue(String s)
           
 void setMaxInactiveInterval(int i)
           
 
Methods inherited from class ScopedAttributeContainer
getScopedName, getScopeKey, isInScope, isInScope, removeScope, removeScope, renameScope
 
Methods inherited from class AttributeContainer
getAttribute, getAttributeNames, getAttributeNamesArray, getAttrMap, getSerializableAttrs, removeAllAttributes, removeAttribute, setAttribute, setAttrMap
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface HttpSession
getAttribute, getAttributeNames, removeAttribute, setAttribute
 

Constructor Detail

ScopedSession

public ScopedSession()
This constructor exists only for deserialization.


ScopedSession

public ScopedSession(HttpSession session,
                     ServletContext cxt,
                     Object scopeKey)
Method Detail

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface HttpSession

getId

public String getId()
Specified by:
getId in interface HttpSession

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface HttpSession

getServletContext

public ServletContext getServletContext()
Specified by:
getServletContext in interface HttpSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int i)
Specified by:
setMaxInactiveInterval in interface HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface HttpSession

getSessionContext

public HttpSessionContext getSessionContext()
Specified by:
getSessionContext in interface HttpSession

getValue

public Object getValue(String s)
Specified by:
getValue in interface HttpSession

getValueNames

public String[] getValueNames()
Specified by:
getValueNames in interface HttpSession

putValue

public void putValue(String s,
                     Object o)
Specified by:
putValue in interface HttpSession

removeValue

public void removeValue(String s)
Specified by:
removeValue in interface HttpSession

invalidate

public void invalidate()
Specified by:
invalidate in interface HttpSession

isNew

public boolean isNew()
Specified by:
isNew in interface HttpSession

getOuterSession

public HttpSession getOuterSession()
Returns the real (outer) HttpSession.