org.jasig.portal.utils.web
Class RequestAttributeMutexListener

java.lang.Object
  extended by org.jasig.portal.utils.web.RequestAttributeMutexListener
All Implemented Interfaces:
EventListener, ServletRequestListener

public class RequestAttributeMutexListener
extends Object
implements ServletRequestListener

Servlet 2.3 HttpSessionListener that automatically exposes the request attribute mutex when an ServletRequest gets created. To be registered as a listener in web.xml.

The request attribute mutex is guaranteed to be the same object during the entire lifetime of the request, available under the key defined by the REQUEST_MUTEX_ATTRIBUTE constant. It serves as a safe reference to synchronize on for locking on the current request attributes.

Version:
$Revision: 19776 $
Author:
Eric Dalquist

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

Constructor Detail

RequestAttributeMutexListener

public RequestAttributeMutexListener()
Method Detail

requestInitialized

public void requestInitialized(ServletRequestEvent sre)
Specified by:
requestInitialized in interface ServletRequestListener

requestDestroyed

public void requestDestroyed(ServletRequestEvent sre)
Specified by:
requestDestroyed in interface ServletRequestListener


Copyright © 2010 Jasig. All Rights Reserved.