public class ClusteredSessionImpl extends SessionImpl
HttpSession
that supports re-storing of mutable
session attributes at the end of the request (see restoreDirtyObjects()
). This is only
used when clustering.SessionPersistedObjectAnalyzer
Constructor and Description |
---|
ClusteredSessionImpl(HttpServletRequest request,
HttpSession session,
SessionLock lock,
SessionPersistedObjectAnalyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Returns the value previously stored in the session.
|
void |
invalidate()
Invalidates this session then unbinds any objects bound to it.
|
void |
restoreDirtyObjects()
Re-stores dirty objects back into the session.
|
void |
setAttribute(String name,
Object value)
Sets the value of an attribute.
|
getAttributeNames, getAttributeNames, getMaxInactiveInterval, isInvalidated, setMaxInactiveInterval
public ClusteredSessionImpl(HttpServletRequest request, HttpSession session, SessionLock lock, SessionPersistedObjectAnalyzer analyzer)
public Object getAttribute(String name)
Session
getAttribute
in interface Session
getAttribute
in class SessionImpl
public void setAttribute(String name, Object value)
Session
setAttribute
in interface Session
setAttribute
in class SessionImpl
public void invalidate()
Session
invalidate
in interface Session
invalidate
in class SessionImpl
public void restoreDirtyObjects()
Session
restoreDirtyObjects
in interface Session
restoreDirtyObjects
in class SessionImpl
OptimizedSessionPersistedObject
,
OptimizedSessionPersistedObjectAnalyzer
,
ImmutableSessionPersistedObject
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.