spring-framework / org.springframework.web.context.request

Package org.springframework.web.context.request

Types

DestructionCallbackBindingListener

open class DestructionCallbackBindingListener : HttpSessionBindingListener, Serializable

Adapter that implements the Servlet HttpSessionBindingListener interface, wrapping a session destruction callback.

FacesWebRequest

open class FacesWebRequest : FacesRequestAttributes, NativeWebRequest

WebRequest adapter for a JSF javax.faces.context.FacesContext.

Requires JSF 2.0 or higher, as of Spring 4.0.

RequestContextListener

open class RequestContextListener : ServletRequestListener

Servlet 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.

RequestScope

open class RequestScope : AbstractRequestAttributesScope

Request-backed org.springframework.beans.factory.config.Scope implementation.

Relies on a thread-bound RequestAttributes instance, which can be exported through RequestContextListener, org.springframework.web.filter.RequestContextFilter or org.springframework.web.servlet.DispatcherServlet.

SessionScope

open class SessionScope : AbstractRequestAttributesScope

Session-backed org.springframework.beans.factory.config.Scope implementation.

Relies on a thread-bound RequestAttributes instance, which can be exported through RequestContextListener, org.springframework.web.filter.RequestContextFilter or org.springframework.web.servlet.DispatcherServlet.