|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.execution.servlet.HttpSessionFlowExecutionStorage
public class HttpSessionFlowExecutionStorage
Flow execution storage implementation that stores the flow execution in the HTTP session.
This storage strategy requires a ServletEvent.
ServletEvent| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger, can be used in subclasses. |
| Constructor Summary | |
|---|---|
HttpSessionFlowExecutionStorage()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
attributeName(java.io.Serializable id)
Returns an appropriate session attribute name for the flow execution id. |
protected java.io.Serializable |
createId()
Helper to generate a unique id for a flow execution in the storage. |
boolean |
isCreateSession()
Returns whether or not an HTTP session should be created if non exists. |
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 |
setCreateSession(boolean createSession)
Set whether or not an HTTP session should be created if non exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public HttpSessionFlowExecutionStorage()
| Method Detail |
|---|
public boolean isCreateSession()
public void setCreateSession(boolean createSession)
public FlowExecution load(java.io.Serializable id,
Event requestingEvent)
throws NoSuchFlowExecutionException,
FlowExecutionStorageException
FlowExecutionStorage
load in interface FlowExecutionStorageid - 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 FlowExecutionStorageid - 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 FlowExecutionStorageid - 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 storageprotected java.io.Serializable createId()
protected java.lang.String attributeName(java.io.Serializable id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||