java.lang.Object | ||
↳ | org.springframework.web.context.request.AbstractRequestAttributes | |
↳ | org.springframework.web.context.request.ServletRequestAttributes |
![]() |
![]() |
Servlet-based implementation of the RequestAttributes
interface.
Accesses objects from servlet request and HTTP session scope, with no distinction between "session" and "global session".
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DESTRUCTION_CALLBACK_NAME_PREFIX | Constant identifying the String prefixed to the name of a
destruction callback when it is stored in a HttpSession. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new ServletRequestAttributes instance for the given request.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Exposes the native HttpServletRequest that we're wrapping.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Exposes the HttpSession that we're wrapping.
| |||||||||||
Register the given callback as to be executed after session termination.
| |||||||||||
Update all accessed session attributes through
session.setAttribute
calls, explicitly indicating to the container that they might have been modified. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constant identifying the String
prefixed to the name of a
destruction callback when it is stored in a HttpSession.
Create a new ServletRequestAttributes instance for the given request.
request | current HTTP request |
---|
Exposes the native HttpServletRequest that we're wrapping.
Exposes the HttpSession that we're wrapping.
allowCreate | whether to allow creation of a new session if none exists yet |
---|
Register the given callback as to be executed after session termination.
Note: The callback object should be serializable in order to survive web app restarts.
name | the name of the attribute to register the callback for |
---|---|
callback | the callback to be executed for destruction |
Update all accessed session attributes through session.setAttribute
calls, explicitly indicating to the container that they might have been modified.