Java EE 5 SDK

com.sun.appserv.web.taglibs.cache
Class CacheRequestListener

java.lang.Object
  extended by com.sun.appserv.web.taglibs.cache.CacheRequestListener
All Implemented Interfaces:
EventListener, ServletRequestListener

public class CacheRequestListener
extends Object
implements ServletRequestListener

ServletRequestListener which creates a cache for JSP tag body invocations and adds it as a request attribute in response to requestInitialized events, and clears the cache in response to requestDestroyed events.


Constructor Summary
CacheRequestListener()
          No-arg constructor
 
Method Summary
 void requestDestroyed(ServletRequestEvent sre)
          Receives notification that the request is about to go out of scope of the web application, and clears the request's cache of JSP tag body invocations (if present).
 void requestInitialized(ServletRequestEvent sre)
          Receives notification that the request is about to enter the scope of the web application, and adds newly created cache for JSP tag body invocations as a request attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheRequestListener

public CacheRequestListener()
No-arg constructor

Method Detail

requestInitialized

public void requestInitialized(ServletRequestEvent sre)
Receives notification that the request is about to enter the scope of the web application, and adds newly created cache for JSP tag body invocations as a request attribute.

Specified by:
requestInitialized in interface ServletRequestListener
Parameters:
sre - the notification event

requestDestroyed

public void requestDestroyed(ServletRequestEvent sre)
Receives notification that the request is about to go out of scope of the web application, and clears the request's cache of JSP tag body invocations (if present).

Specified by:
requestDestroyed in interface ServletRequestListener
Parameters:
sre - the notification event

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.