org.beanlet.web
Class RequestContextListener

java.lang.Object
  extended by org.beanlet.web.RequestContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletRequestListener

public class RequestContextListener
extends Object
implements javax.servlet.ServletRequestListener

Add the following configuration to the web application's web.xml file to support the Request and Session beanlet scopes.
Not required for Servlet 3.0 containers.

 <web-app>
   ...
   <listener>
     <listener-class>org.beanlet.web.RequestContextListener<listener-class>
   </listener>
   ...
 </web-app>
 

See Also:
Request, Session

Constructor Summary
RequestContextListener()
           
 
Method Summary
 void requestDestroyed(javax.servlet.ServletRequestEvent event)
           
 void requestInitialized(javax.servlet.ServletRequestEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestContextListener

public RequestContextListener()
Method Detail

requestInitialized

public void requestInitialized(javax.servlet.ServletRequestEvent event)
Specified by:
requestInitialized in interface javax.servlet.ServletRequestListener

requestDestroyed

public void requestDestroyed(javax.servlet.ServletRequestEvent event)
Specified by:
requestDestroyed in interface javax.servlet.ServletRequestListener


Copyright © 2006-2012. All Rights Reserved.