uk.ac.ebi.intenz.webapp
Class ConnectionBindingListener

java.lang.Object
  extended by uk.ac.ebi.intenz.webapp.ConnectionBindingListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionBindingListener

public class ConnectionBindingListener
extends Object
implements javax.servlet.http.HttpSessionBindingListener

This class makes it possible to bind objects of this class to the session, which will be notified if they are binded or unbinded from a session.

The purpose of this class is to close connections properly, when the session is invalidated or timed out.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:13 $
Author:
Michael Darsow

Constructor Summary
ConnectionBindingListener(Connection con)
           
 
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
 

Constructor Detail

ConnectionBindingListener

public ConnectionBindingListener(Connection con)
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


Copyright © 2013 EMBL-EBI. All Rights Reserved.