Repository
Class EventHandler

java.lang.Object
  extended byRepository.EventHandler

public class EventHandler
extends java.lang.Object

Listen ServletContext and SercletRequest events.

Changes:

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 1, 0
Author:
Alexis Grandemange

Field Summary
(package private) static boolean isRequestListener
          Set to false with Servlet 2.3 (ServletRequestListener not supported)
 
Constructor Summary
EventHandler()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
          ServletContextListener method called when the application is unloaded.
 void contextInitialized(ServletContextEvent sce)
          ServletContextListener method called when the application is loaded.
 void requestDestroyed(ServletRequestEvent sce)
          ServletRequestListener called when a request leaves the application.
 void requestInitialized(ServletRequestEvent sce)
          ServletRequestListener called when a request enters the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isRequestListener

static boolean isRequestListener
Set to false with Servlet 2.3 (ServletRequestListener not supported)

Constructor Detail

EventHandler

public EventHandler()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent sce)
ServletContextListener method called when the application is loaded. Creates the DynDns instance.

See Also:
javax.servlet.ServletContextListener#contextInitialized(ServletContextEvent)

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
ServletContextListener method called when the application is unloaded. Ends the DynDns thread.

See Also:
javax.servlet.ServletContextListener#contextDestroyed(ServletContextEvent)

requestInitialized

public void requestInitialized(ServletRequestEvent sce)
ServletRequestListener called when a request enters the application. Checks the URL.

See Also:
javax.servlet.ServletRequestListener#requestInitialized(ServletRequestEvent)

requestDestroyed

public void requestDestroyed(ServletRequestEvent sce)
ServletRequestListener called when a request leaves the application. Empty.

See Also:
javax.servlet.ServletRequestListener#requestDestroyed(ServletRequestEvent)