javax.servlet.http
Interface HttpSessionBindingListener


public abstract interface HttpSessionBindingListener
extends java.util.EventListener

Objects implement this interface so that they can be notified when they are being bound or unbound from a HttpSession. When a binding occurs (using HttpSession.putValue) HttpSessionBindingEvent communicates the event and identifies the session into which the object is bound.

Similarly, when an unbinding occurs (using HttpSession.removeValue) HttpSessionBindingEvent communicates the event and identifies the session from which the object is unbound.

See Also:
HttpSession, HttpSessionBindingEvent

Method Summary
 void valueBound(HttpSessionBindingEvent event)
          Notifies the listener that it is being bound into a session.
 void valueUnbound(HttpSessionBindingEvent event)
          Notifies the listener that it is being unbound from a session.
 

Method Detail

valueBound

public void valueBound(HttpSessionBindingEvent event)
Notifies the listener that it is being bound into a session.
Parameters:
event - the event identifying the session into which the listener is being bound.

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Notifies the listener that it is being unbound from a session.
Parameters:
event - the event identifying the session from which the listener is being unbound.