All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.servlet.http.HttpSessionBindingEvent

javax.servlet.http.HttpSessionBindingEvent

public class HttpSessionBindingEvent
This event is communicated to a HttpSessionBindingListener whenever the listener is bound to or unbound from a HttpSession value.

The event's source is the HttpSession: binding occurs with a call to HttpSession.putValue; unbinding occurs with a call to HttpSession.removeValue.

See Also:
HttpSession, HttpSessionBindingListener

Constructor Index

 o HttpSessionBindingEvent(HttpSession, String)
Constructs a new HttpSessionBindingEvent

Method Index

 o getName()
Returns the name to which the object is being bound or the name from which the object is being unbound.
 o getSession()
Returns the session into which the listener is being bound or from which the listener is being unbound.

Constructors

 o HttpSessionBindingEvent
 public HttpSessionBindingEvent(HttpSession session,
                                String name)
Constructs a new HttpSessionBindingEvent

Parameters:
session - the session acting as the source of the event
name - the name to which the object is being bound or the name from which the object is being unbound

Methods

 o getName
 public String getName()
Returns the name to which the object is being bound or the name from which the object is being unbound.

 o getSession
 public HttpSession getSession()
Returns the session into which the listener is being bound or from which the listener is being unbound.


All Packages  Class Hierarchy  This Package  Previous  Next  Index