Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » web » context » request » [javadoc | source]
org.springframework.web.context.request
public class: RequestContextListener [javadoc | source]
java.lang.Object
   org.springframework.web.context.request.RequestContextListener

All Implemented Interfaces:
    ServletRequestListener

Servlet 2.4+ listener that exposes the request to the current thread, through both org.springframework.context.i18n.LocaleContextHolder and RequestContextHolder . To be registered as listener in web.xml.

Alternatively, Spring's org.springframework.web.filter.RequestContextFilter and Spring's org.springframework.web.servlet.DispatcherServlet also expose the same request context to the current thread. In contrast to this listener, advanced options are available there (e.g. "threadContextInheritable").

This listener is mainly for use with third-party servlets, e.g. the JSF FacesServlet. Within Spring's own web support, DispatcherServlet's processing is perfectly sufficient.

Field Summary
protected final  Log logger    Logger available to subclasses 
Method from org.springframework.web.context.request.RequestContextListener Summary:
requestDestroyed,   requestInitialized
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.context.request.RequestContextListener Detail:
 public  void requestDestroyed(ServletRequestEvent requestEvent) 
 public  void requestInitialized(ServletRequestEvent requestEvent)