Class RecoverStateData

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class RecoverStateData extends AbstractApplicationAction
Action that maps a state token into a StateData (or subclass) object.

The state token comes from a pluggable function.

The token and the recovered object will be set into a StateDataContext created by a pluggable strategy.

Errors resulting from the absence of a state token or a failure to recover associated state may be ignored or result in an EventIds.IO_ERROR event. For example, if the protocol supports unsolicited requests, a failure to retrieve prior state may be expected and should be ignored.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, EventIds.IO_ERROR
Precondition:
AgentRequestContext.getOutput().isstruct()
,
AgentRequestContext.getRemotedServletResponse() != null
Postcondition:
a StateDataContext is created and populated as directed