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:
int
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:
java.lang.String
It returns this value:
java.lang.Object
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
exceptions.
It returns this value:
Enumeration
The getCreationTime() Method
public long getCreationTime()
Search WWH ::




Custom Search