|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.WrappedHttpSession
public class WrappedHttpSession
Wrapper for HttpSession
.
Constructor Summary | |
---|---|
WrappedHttpSession(javax.servlet.http.HttpSession session)
Creates a new wrapped http session. |
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. |
javax.servlet.http.HttpSession |
getHttpSession()
Gets the wrapped HttpSession . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WrappedHttpSession(javax.servlet.http.HttpSession session)
session
- the http session to wrap.Method Detail |
---|
public int getMaxInactiveInterval()
WrappedSession
getMaxInactiveInterval
in interface WrappedSession
HttpSession.getMaxInactiveInterval()
,
PortletSession.getMaxInactiveInterval()
public java.lang.Object getAttribute(java.lang.String name)
WrappedSession
getAttribute
in interface WrappedSession
name
- the name of the attribute
null
if the attribute is not
defined in the sessionHttpSession.getAttribute(String)
,
PortletSession.getAttribute(String)
public void setAttribute(java.lang.String name, java.lang.Object value)
WrappedSession
setAttribute
in interface WrappedSession
name
- the name of the attributevalue
- the attribute valueHttpSession.setAttribute(String, Object)
,
PortletSession.setAttribute(String, Object)
public javax.servlet.http.HttpSession getHttpSession()
HttpSession
.
public java.util.Set<java.lang.String> getAttributeNames()
WrappedSession
getAttributeNames
in interface WrappedSession
HttpSession.getAttributeNames()
,
PortletSession.getAttributeNames()
public void invalidate()
WrappedSession
invalidate
in interface WrappedSession
HttpSession.invalidate()
,
PortletSession.invalidate()
public java.lang.String getId()
WrappedSession
getId
in interface WrappedSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |