|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Session
Generic version of HttpSession, used to bridge the gaps between the Servlet API and the Portlet API.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||