01: /*
02: * Created on Nov 17, 2005
03: */
04: package uk.org.ponder.rsf.viewstate;
05:
06: import java.util.Map;
07:
08: /** Parses the specification of view state (as specified by a URL) out of the
09: * slightly processed raw materials of a String "pathinfo" and a Map of request
10: * parameters. These may canonically have arised from the methods of the same
11: * name in HttpServletRequest - or they may not.
12: * <p>
13: * The design of this class is an experiment in the new "pea programming".
14: * The fields represent "input parameters" and the method body represents the
15: * "result". Since in order to be reused, instances of this class need to be
16: * cloned, these input fields need to be readable by the cloner which we would
17: * not like to be restricted to be slow.
18: * <p> Oh well, never mind - we went back with the MethodInvokingBeanFactory
19: * solution again in the end.
20: * @author Antranig Basman (antranig@caret.cam.ac.uk)
21: *
22: */
23: public interface ViewParametersParser {
24: public ViewParameters parse(String pathinfo, Map requestmap);
25: }
|