List of usage examples for javax.servlet.http HttpSessionBindingEvent HttpSessionBindingEvent
public HttpSessionBindingEvent(HttpSession session, String name, Object value)
From source file:org.springframework.session.web.http.HttpSessionAdapter.java
@Override public void removeAttribute(String name) { checkState();/*from w w w . ja va2 s. com*/ Object oldValue = this.session.getAttribute(name); this.session.removeAttribute(name); if (oldValue instanceof HttpSessionBindingListener) { try { ((HttpSessionBindingListener) oldValue) .valueUnbound(new HttpSessionBindingEvent(this, name, oldValue)); } catch (Throwable th) { logger.error("Error invoking session binding event listener", th); } } }