Example usage for Java javax.servlet.http HttpSession fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
Object | getAttribute(String name) Returns the object bound with the specified name in this session, or null if no object is bound under the name. |
Enumeration | getAttributeNames() Returns an Enumeration of String objects containing the names of all the objects bound to this session. |
long | getCreationTime() Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT. |
String | getId() Returns a string containing the unique identifier assigned to this session. |
long | getLastAccessedTime() Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and marked by the time the container received the request. |
int | getMaxInactiveInterval() Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. |
ServletContext | getServletContext() Returns the ServletContext to which this session belongs. |
HttpSessionContext | getSessionContext() |
Object | getValue(String name) |
String[] | getValueNames() |
int | hashCode() Returns a hash code value for the object. |
void | invalidate() Invalidates this session then unbinds any objects bound to it. |
boolean | isNew() Returns true if the client does not yet know about the session or if the client chooses not to join the session. |
void | putValue(String name, Object value) |
void | removeAttribute(String name) Removes the object bound with the specified name from this session. |
void | removeValue(String name) |
void | setAttribute(String name, Object value) Binds an object to this session, using the name specified. |
void | setMaxInactiveInterval(int interval) Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. |
String | toString() Returns a string representation of the object. |