Class RequestContextHolder

java.lang.Object
org.springframework.web.context.request.RequestContextHolder

public abstract class RequestContextHolder extends Object
Holder class to expose the web request in the form of a thread-bound RequestAttributes object. The request will be inherited by any child threads spawned by the current thread if the inheritable flag is set to true.

Use RequestContextListener or RequestContextFilter to expose the current web request. Note that DispatcherServlet already exposes the current request by default.

Since:
2.0
Author:
Juergen Hoeller, Rod Johnson
See Also: