| java.lang.Object | ||
| ↳ | org.springframework.web.context.request.AbstractRequestAttributes | |
| ↳ | org.springframework.web.portlet.context.PortletRequestAttributes | |
Known Direct Subclasses
|
Portlet-based implementation of the
RequestAttributes interface.
Accesses objects from portlet request and portlet session scope, with a distinction between "session" (the PortletSession's "portlet scope") and "global session" (the PortletSession's "application scope").
SCOPE_SESSIONSCOPE_GLOBAL_SESSION|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.web.context.request.RequestAttributes
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DESTRUCTION_CALLBACK_NAME_PREFIX | Constant identifying the String prefixed to the name of a
destruction callback when it is stored in a PortletSession. |
||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.context.request.AbstractRequestAttributes
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new PortletRequestAttributes instance for the given request.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Exposes the native PortletRequest that we're wrapping.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Exposes the PortletSession 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.context.request.AbstractRequestAttributes
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.web.context.request.RequestAttributes
| |||||||||||
Constant identifying the String prefixed to the name of a
destruction callback when it is stored in a PortletSession.
Create a new PortletRequestAttributes instance for the given request.
| request | current portlet request |
|---|
Exposes the native PortletRequest that we're wrapping.
Exposes the PortletSession 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.