xmlBlaster 2.1.0 API

org.xmlBlaster.protocol.http.ajax
Class SessionTimeoutListener

java.lang.Object
  extended by org.xmlBlaster.protocol.http.ajax.SessionTimeoutListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

 class SessionTimeoutListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener

Detect when a servlet session dies (with tomcat typically after one hour). Causes an object to be notified when it is bound to or unbound from a session. The object is notified by an HttpSessionBindingEvent object. This may be as a result of a servlet programmer explicitly unbinding an attribute from a session, due to a session being invalidated, or due to a session timing out.

Author:
Marcel Ruff xmlBlaster@marcelruff.info 2007

Field Summary
private  BlasterInstance blasterInstance
           
private static java.util.logging.Logger log
           
 
Constructor Summary
SessionTimeoutListener(BlasterInstance blasterInstance)
           
 
Method Summary
 void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
           
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log

blasterInstance

private BlasterInstance blasterInstance
Constructor Detail

SessionTimeoutListener

public SessionTimeoutListener(BlasterInstance blasterInstance)
Method Detail

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.