Java EE 5 SDK

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

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

public class CacheSessionListener
extends Object
implements HttpSessionListener

HttpSessionListener which creates a cache for JSP tag body invocations and adds it as a session attribute in response to sessionCreated events, and clears the cache in response to sessionDestroyed events.


Constructor Summary
CacheSessionListener()
          No-arg constructor
 
Method Summary
 void sessionCreated(HttpSessionEvent hse)
          Receives notification that a session was created, and adds newly created cache for JSP tag body invocations as a session attribute.
 void sessionDestroyed(HttpSessionEvent hse)
          Receives notification that a session is about to be invalidated, and clears the session's cache of JSP tag body invocations (if present).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheSessionListener

public CacheSessionListener()
No-arg constructor

Method Detail

sessionCreated

public void sessionCreated(HttpSessionEvent hse)
Receives notification that a session was created, and adds newly created cache for JSP tag body invocations as a session attribute.

Specified by:
sessionCreated in interface HttpSessionListener
Parameters:
hse - the notification event

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent hse)
Receives notification that a session is about to be invalidated, and clears the session's cache of JSP tag body invocations (if present).

Specified by:
sessionDestroyed in interface HttpSessionListener
Parameters:
hse - the notification event

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.