javax.servlet.http

Interface HttpSessionBindingListener

All Superinterfaces:
EventListener

public interface HttpSessionBindingListener
extends EventListener

Objects that implement this interface will be called when they are bound or unbound into a HttpSession with a HttpSessionBindingEvent.
Since:
Servlet API 2.0
See Also:
HttpSession, javax.servlet.http.HttpSession.putValue(java.lang.String, java.lang.Object), javax.servlet.http.HttpSession.removeValue(java.lang.String), HttpSession.invalidate(), HttpSessionBindingEvent

Method Summary

void
valueBound(HttpSessionBindingEvent event)
Called when the object is bound to a session.
void
valueUnbound(HttpSessionBindingEvent event)
Called when the object is unbound from a session.

Method Details

valueBound

public void valueBound(HttpSessionBindingEvent event)
Called when the object is bound to a session.
Parameters:
event - The event object containing the name and session
Since:
Servlet API 2.0

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Called when the object is unbound from a session.
Parameters:
event - The event object containing the name and session
Since:
Servlet API 2.0