Java Reference
In-Depth Information
The HttpSessionBindingListener Interface
public interface HttpSessionBindingListener
extends java.util.EventListener
The HttpSessionBindingListener interface defines methods that an object can implement if
it wants to be notified of an object in the session being bound or unbound. The
HttpSessionBindingListener interface has two methods, described in the following sections.
The valueBound() Method
public void valueBound(HttpSessionBindingEvent event)
C
The valueBound() method notifies a listener that the object is being bound into a session.
valueBound() returns no value and throws no exceptions.
It has one parameter:
HttpSessionBindingEvent
The valueUnBound() Method
public void valueUnBound(HttpSessionBindingEvent event)
The valueUnBound() method notifies a listener that the object is being unbound from a ses-
sion. valueUnBound() returns no value and throws no exceptions.
It has one parameter:
HttpSessionBindingEvent
Classes
The four classes for the java.servlet.http package are Cookie , HttpServlet ,
HttpSessionBindingEvent , and HttpUtils .
The Cookie Class
public class Cookie
extends java.lang.Object
implements java.lang.Cloneable
The Cookie class represents a cookie used for session management in HTTP protocols.
Cookies are name/value pairs that are created by the server and stored in the client. The
Cookie class has 17 methods, described in the following sections.
The Cookie() Method
public Cookie(java.lang.String name,
java.lang.String value)
 
Search WWH ::




Custom Search