| java.lang.Object org.springframework.web.context.request.AbstractRequestAttributes
All known Subclasses: org.springframework.web.portlet.context.PortletRequestAttributes, org.springframework.web.context.request.ServletRequestAttributes,
AbstractRequestAttributes | abstract public class AbstractRequestAttributes implements RequestAttributes(Code) | | Abstract support class for RequestAttributes implementations,
offering a request completion mechanism for request-specific destruction
callbacks and for updating accessed session attributes.
author: Juergen Hoeller since: 2.0 See Also: AbstractRequestAttributes.requestCompleted() |
requestDestructionCallbacks | final protected Map requestDestructionCallbacks(Code) | | Map from attribute name String to destruction callback Runnable
|
registerRequestDestructionCallback | final protected void registerRequestDestructionCallback(String name, Runnable callback)(Code) | | Register the given callback as to be executed after request completion.
Parameters: name - the name of the attribute to register the callback for Parameters: callback - the callback to be executed for destruction |
removeRequestDestructionCallback | final protected void removeRequestDestructionCallback(String name)(Code) | | Remove the request destruction callback for the specified attribute, if any.
Parameters: name - the name of the attribute to remove the callback for |
requestCompleted | public void requestCompleted()(Code) | | Signal that the request has been completed.
Executes all request destruction callbacks and updates the
session attributes that have been accessed during request processing.
|
updateAccessedSessionAttributes | abstract protected void updateAccessedSessionAttributes()(Code) | | Update all session attributes that have been accessed during request processing,
to expose their potentially updated state to the underlying session manager.
|
|
|