requestCompleted()
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| protected final Map | requestDestructionCallbacks
Map from attribute name String to destruction callback Runnable. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | executeRequestDestructionCallbacks()
Execute all callbacks that have been registered for execution after request completion. |
| protected final boolean | |
| protected final void | registerRequestDestructionCallback(String
the name of the attribute to register the callback for name, Runnable the callback to be executed for destruction callback)Register the given callback as to be executed after request completion. |
| protected final void | removeRequestDestructionCallback(String
the name of the attribute to remove the callback for name)Remove the request destruction callback for the specified attribute, if any. |
| public void | |
| protected abstract void | updateAccessedSessionAttributes()
Update all session attributes that have been accessed during request processing, to expose their potentially updated state to the underlying session manager. |
| requestActive | back to summary |
|---|---|
| private volatile boolean requestActive | |
| requestDestructionCallbacks | back to summary |
|---|---|
| protected final Map<String, Runnable> requestDestructionCallbacks Map from attribute name String to destruction callback Runnable. | |
| AbstractRequestAttributes | back to summary |
|---|---|
| public AbstractRequestAttributes() | |
| executeRequestDestructionCallbacks | back to summary |
|---|---|
| private void executeRequestDestructionCallbacks() Execute all callbacks that have been registered for execution after request completion. | |
| isRequestActive | back to summary |
|---|---|
| protected final boolean isRequestActive() Determine whether the original request is still active.
| |
| registerRequestDestructionCallback | back to summary |
|---|---|
| protected final void registerRequestDestructionCallback(String name, Runnable callback) Register the given callback as to be executed after request completion. | |
| removeRequestDestructionCallback | back to summary |
|---|---|
| protected final void removeRequestDestructionCallback(String name) Remove the request destruction callback for the specified attribute, if any.
| |
| requestCompleted | back to summary |
|---|---|
| public void requestCompleted() 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 | back to summary |
|---|---|
| protected abstract void updateAccessedSessionAttributes() Update all session attributes that have been accessed during request processing, to expose their potentially updated state to the underlying session manager. | |