|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WrappedSession
A generic session, wrapping a more specific session implementation, e.g.
HttpSession or PortletSession.
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets an attribute from this session. |
java.util.Set<java.lang.String> |
getAttributeNames()
Gets the current set of attribute names stored in this session. |
java.lang.String |
getId()
Gets a string with a unique identifier for the session. |
int |
getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that this session will be kept open between client accesses. |
void |
invalidate()
Invalidates this session then unbinds any objects bound to it. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Saves an attribute value in this session. |
| Method Detail |
|---|
int getMaxInactiveInterval()
HttpSession.getMaxInactiveInterval(),
PortletSession.getMaxInactiveInterval()java.lang.Object getAttribute(java.lang.String name)
name - the name of the attribute
null if the attribute is not
defined in the sessionHttpSession.getAttribute(String),
PortletSession.getAttribute(String)
void setAttribute(java.lang.String name,
java.lang.Object value)
name - the name of the attributevalue - the attribute valueHttpSession.setAttribute(String, Object),
PortletSession.setAttribute(String, Object)java.util.Set<java.lang.String> getAttributeNames()
HttpSession.getAttributeNames(),
PortletSession.getAttributeNames()void invalidate()
HttpSession.invalidate(),
PortletSession.invalidate()java.lang.String getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||