org.apache.beehive.netui.pageflow.scoping.internal
Class ScopedSession
Object
AttributeContainer
ScopedAttributeContainer
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)
|
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 |
ScopedSession
public ScopedSession()
- This constructor exists only for deserialization.
ScopedSession
public ScopedSession(HttpSession session,
ServletContext cxt,
Object scopeKey)
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.