Java Reference
In-Depth Information
The setStatus() Method
public void setStatus(int sc)
The setStatus() method sets the status code for the response. setStatus() returns no value
and throws no exceptions.
It has one parameter:
The HttpSession Interface
public interface HttpSession
The HttpSession interface defines an object that provides an association between a client and
server; this association persists over multiple connections. Using HttpSession gives you the
ability to maintain state between transactions. This interface has 12 methods, described in the
following sections.
The getAttribute() Method
public java.lang.Object getAttribute(java.lang.String name)
The getAttribute() method returns a reference to the named object in the current session.
The object must be downcasted to its original type. getAttribute() throws no exceptions.
It has one parameter:
It returns this value:
The getAttributeNames() Method
public Enumeration getAttributeNames()
The getAttributeNames() method returns an enumeration of strings representing all of the
data objects bound to this session. getAttributeNames() has no parameters and throws no
It returns this value:
The getCreationTime() Method
public long getCreationTime()
Search WWH ::

Custom Search