public interface Session
HttpSession
, used to bridge the gaps between the Servlet API and the Portlet API.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value previously stored in the session.
|
java.util.List<java.lang.String> |
getAttributeNames()
Returns a list of the names of all attributes stored in the session.
|
java.util.List<java.lang.String> |
getAttributeNames(java.lang.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(java.lang.String name,
java.lang.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.
|
java.util.List<java.lang.String> getAttributeNames()
java.util.List<java.lang.String> getAttributeNames(java.lang.String prefix)
java.lang.Object getAttribute(java.lang.String name)
void setAttribute(java.lang.String name, java.lang.Object value)
int getMaxInactiveInterval()
void setMaxInactiveInterval(int seconds)
void invalidate()
java.lang.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.