Java javax.servlet.http HttpSession fields, constructors, methods, implement or subclass

Example usage for Java javax.servlet.http HttpSession fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.servlet.http HttpSession.

The text is from its open source code.

Implementation

javax.servlet.http.HttpSession has the following implementations.
Click this link to see all its implementation.

Constructor

Method

booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ObjectgetAttribute(String name)
Returns the object bound with the specified name in this session, or null if no object is bound under the name.
EnumerationgetAttributeNames()
Returns an Enumeration of String objects containing the names of all the objects bound to this session.
longgetCreationTime()
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.
StringgetId()
Returns a string containing the unique identifier assigned to this session.
longgetLastAccessedTime()
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.
intgetMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses.
ServletContextgetServletContext()
Returns the ServletContext to which this session belongs.
HttpSessionContextgetSessionContext()
ObjectgetValue(String name)
String[]getValueNames()
inthashCode()
Returns a hash code value for the object.
voidinvalidate()
Invalidates this session then unbinds any objects bound to it.
booleanisNew()
Returns true if the client does not yet know about the session or if the client chooses not to join the session.
voidputValue(String name, Object value)
voidremoveAttribute(String name)
Removes the object bound with the specified name from this session.
voidremoveValue(String name)
voidsetAttribute(String name, Object value)
Binds an object to this session, using the name specified.
voidsetMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.
StringtoString()
Returns a string representation of the object.