java.lang.Object | |
↳ | org.springframework.web.bind.support.DefaultSessionAttributeStore |
Default implementation of the SessionAttributeStore
interface,
storing the attributes in the WebRequest session (i.e. HttpSession
or PortletSession).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clean up the specified attribute in the backend session.
| |||||||||||
Retrieve the specified attribute from the backend session.
| |||||||||||
Specify a prefix to use for the attribute names in the backend session.
| |||||||||||
Store the supplied attribute in the backend session.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculate the attribute name in the backend session.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Clean up the specified attribute in the backend session.
Indicates that the attribute name will not be used anymore.
request | the current request |
---|---|
attributeName | the name of the attribute |
Retrieve the specified attribute from the backend session.
This will typically be called with the expectation that the
attribute is already present, with an exception to be thrown
if this method returns null
.
request | the current request |
---|---|
attributeName | the name of the attribute |
null
if none
Specify a prefix to use for the attribute names in the backend session.
Default is to use no prefix, storing the session attributes with the same name as in the model.
Store the supplied attribute in the backend session.
Can be called for new attributes as well as for existing attributes. In the latter case, this signals that the attribute value may have been modified.
request | the current request |
---|---|
attributeName | the name of the attribute |
attributeValue | the attribute value to store |
Calculate the attribute name in the backend session.
The default implementation simply prepends the configured
"attributeNamePrefix"
, if any.
request | the current request |
---|---|
attributeName | the name of the attribute |