01: /*
02: * Created on Oct 8, 2005
03: */
04: package uk.org.ponder.rsf.flow;
05:
06: import uk.org.ponder.rsf.viewstate.ViewParameters;
07:
08: /** Used at the end of a POST request to determine which view will be
09: * redirected to. As well as the String result returned from the action method,
10: * this may also use information stored in the ThreadErrorState to make its
11: * decision for the final view.
12: * @author Antranig Basman (antranig@caret.cam.ac.uk)
13: */
14:
15: public interface ActionResultInterpreter {
16: /** @return An ARIResult representing the desired view and flow state for the
17: * just completed action. This may be <code>null</code> if the ARI determines
18: * that it is not appropriate for this action cycle and wishes to delegate
19: * to another.
20: */
21: public ARIResult interpretActionResult(ViewParameters incoming,
22: Object result);
23: }
|