public class

RequestContextListener

extends Object
implements ServletRequestListener
java.lang.Object
   ↳ org.springframework.web.context.request.RequestContextListener

Class Overview

Servlet 2.4+ listener that 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. 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.

Summary

Public Constructors
RequestContextListener()
Public Methods
void requestDestroyed(ServletRequestEvent requestEvent)
void requestInitialized(ServletRequestEvent requestEvent)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.ServletRequestListener

Public Constructors

public RequestContextListener ()

Public Methods

public void requestDestroyed (ServletRequestEvent requestEvent)

public void requestInitialized (ServletRequestEvent requestEvent)