|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.execution.servlet.HttpSessionFlowExecutionStorage
org.springframework.webflow.execution.servlet.HttpSessionContinuationFlowExecutionStorage
public class HttpSessionContinuationFlowExecutionStorage
Flow execution storage that stores flow executions as continuations in the HttpSession.
A downside of this storage strategy (and of server-side continuations in general)
is that there could be many copies of the flow execution stored in the HTTP
session, increasing server memory requirements. It is advised that you use the
ExpiredFlowCleanupFilter to
cleanup any flow execution continuations as soon as they can be considered
to have expired.
This storage strategy requires a ServletEvent.
ExpiredFlowCleanupFilter,
ServletEvent| Field Summary |
|---|
| Fields inherited from class org.springframework.webflow.execution.servlet.HttpSessionFlowExecutionStorage |
|---|
logger |
| Constructor Summary | |
|---|---|
HttpSessionContinuationFlowExecutionStorage()
|
|
| Method Summary | |
|---|---|
boolean |
isCompress()
Returns whether or not continuations should be compressed. |
FlowExecution |
load(java.io.Serializable id,
Event requestingEvent)
Load an existing flow execution, identified by given unique id, from the storage. |
void |
remove(java.io.Serializable id,
Event requestingEvent)
Remove the identified flow execution from the storage. |
java.io.Serializable |
save(java.io.Serializable id,
FlowExecution flowExecution,
Event requestingEvent)
Save given flow execution in the storage. |
void |
setCompress(boolean compress)
Set whether or not continuations should be compressed. |
| Methods inherited from class org.springframework.webflow.execution.servlet.HttpSessionFlowExecutionStorage |
|---|
attributeName, createId, isCreateSession, setCreateSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpSessionContinuationFlowExecutionStorage()
| Method Detail |
|---|
public boolean isCompress()
public void setCompress(boolean compress)
public FlowExecution load(java.io.Serializable id,
Event requestingEvent)
throws NoSuchFlowExecutionException,
FlowExecutionStorageException
FlowExecutionStorage
load in interface FlowExecutionStorageload in class HttpSessionFlowExecutionStorageid - the unique id of the flow execution, as returned by the
save methodrequestingEvent - the event requesting the load of the flow execution
NoSuchFlowExecutionException - when there is no flow execution
with specified id in the storage
FlowExecutionStorageException - when there is a technical problem
accessing the flow execution storage
public java.io.Serializable save(java.io.Serializable id,
FlowExecution flowExecution,
Event requestingEvent)
throws FlowExecutionStorageException
FlowExecutionStorage
save in interface FlowExecutionStoragesave in class HttpSessionFlowExecutionStorageid - the unique id of the flow execution, or null
if the flow execution does not yet have an id (e.g. was not
previously saved)flowExecution - the flow execution to saverequestingEvent - the event requesting the save of the flow execution
FlowExecutionStorageException - when there is a technical problem
accessing the flow execution storage
public void remove(java.io.Serializable id,
Event requestingEvent)
throws FlowExecutionStorageException
FlowExecutionStorage
remove in interface FlowExecutionStorageremove in class HttpSessionFlowExecutionStorageid - the unique id of the flow execution, as returned by the
save methodrequestingEvent - the event requesting the remove of the flow execution
FlowExecutionStorageException - when there is a technical problem
accessing the flow execution storage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||