01: /*
02: * Created on Oct 8, 2005
03: */
04: package uk.org.ponder.rsf.flow.support;
05:
06: import uk.org.ponder.rsf.flow.ARIResult;
07: import uk.org.ponder.rsf.flow.ActionResultInterpreter;
08: import uk.org.ponder.rsf.viewstate.ViewParameters;
09:
10: /** An action result interpreter that simply redirects to the incoming
11: * view.
12: * @author Antranig Basman (antranig@caret.cam.ac.uk)
13: *
14: */
15: public class DefaultActionResultInterpreter implements
16: ActionResultInterpreter {
17:
18: public ARIResult interpretActionResult(ViewParameters incoming,
19: Object result) {
20: ARIResult togo = new ARIResult();
21: togo.resultingView = incoming.copyBase();
22: togo.propagateBeans = ARIResult.FLOW_END;
23: return togo;
24: }
25:
26: }
|