org.springframework.web.context.request
Class RequestContextListener
java.lang.Object
org.springframework.web.context.request.RequestContextListener
- All Implemented Interfaces:
- EventListener, ServletRequestListener
public class RequestContextListener
- extends Object
- implements ServletRequestListener
Listener for Servlet 2.4+ containers. Exposes the request to the current thread,
through both LocaleContextHolder and RequestContextHolder.
To be registered as listener in web.xml.
Alternatively, Spring's RequestContextFilter and Spring's DispatcherServlet
also expose the same request context to the current thread.
- Since:
- 2.0
- Author:
- Steven Devijver, Juergen Hoeller
- See Also:
ServletRequestListener,
LocaleContextHolder,
RequestContextHolder,
RequestContextFilter,
DispatcherServlet
|
Field Summary |
protected Log |
logger
Logger available to subclasses |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
- Logger available to subclasses
RequestContextListener
public RequestContextListener()
requestInitialized
public void requestInitialized(ServletRequestEvent requestEvent)
- Specified by:
requestInitialized in interface ServletRequestListener
requestDestroyed
public void requestDestroyed(ServletRequestEvent requestEvent)
- Specified by:
requestDestroyed in interface ServletRequestListener
Copyright © 2002-2006 The Spring Framework.