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

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

public class CacheSessionListener
extends java.lang.Object
implements javax.servlet.http.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(javax.servlet.http.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(javax.servlet.http.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(javax.servlet.http.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 javax.servlet.http.HttpSessionListener
Parameters:
hse - the notification event

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.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 javax.servlet.http.HttpSessionListener
Parameters:
hse - the notification event


Copyright © 2012 GlassFish Community. All Rights Reserved.