public interface Session
HttpSession
, used to bridge the gaps between the Servlet API and the Portlet API.Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Returns the value previously stored in the session.
|
List<String> |
getAttributeNames()
Returns a list of the names of all attributes stored in the session.
|
List<String> |
getAttributeNames(String prefix)
Returns a list of the names of all attributes stored in the session whose name has the provided prefix.
|
int |
getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between
client accesses.
|
void |
invalidate()
Invalidates this session then unbinds any objects bound to it.
|
boolean |
isInvalidated()
Checks to see if the session has been invalidated.
|
void |
restoreDirtyObjects()
Re-stores dirty objects back into the session.
|
void |
setAttribute(String name,
Object value)
Sets the value of an attribute.
|
void |
setMaxInactiveInterval(int seconds)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this
session.
|
List<String> getAttributeNames()
List<String> getAttributeNames(String prefix)
Object getAttribute(String name)
void setAttribute(String name, Object value)
int getMaxInactiveInterval()
void setMaxInactiveInterval(int seconds)
void invalidate()
IllegalStateException
- if this method is called on an already invalidated sessionboolean isInvalidated()
HttpSession.invalidate()
.void restoreDirtyObjects()
OptimizedSessionPersistedObject
,
OptimizedSessionPersistedObjectAnalyzer
,
ImmutableSessionPersistedObject
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.