public interface SessionAttributeStore
SessionAttributes
Modifier and Type | Method and Description |
---|---|
void |
cleanupAttribute(WebRequest request,
java.lang.String attributeName)
Clean up the specified attribute in the backend session.
|
java.lang.Object |
retrieveAttribute(WebRequest request,
java.lang.String attributeName)
Retrieve the specified attribute from the backend session.
|
void |
storeAttribute(WebRequest request,
java.lang.String attributeName,
java.lang.Object attributeValue)
Store the supplied attribute in the backend session.
|
void storeAttribute(WebRequest request, java.lang.String attributeName, java.lang.Object attributeValue)
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 requestattributeName
- the name of the attributeattributeValue
- the attribute value to storejava.lang.Object retrieveAttribute(WebRequest request, java.lang.String attributeName)
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 requestattributeName
- the name of the attributenull
if nonevoid cleanupAttribute(WebRequest request, java.lang.String attributeName)
Indicates that the attribute name will not be used anymore.
request
- the current requestattributeName
- the name of the attribute