01: /*
02: * Created on 16 Jul 2007
03: */
04: package uk.org.ponder.rsf.viewstate;
05:
06: import java.util.Map;
07:
08: /** The raw transport format for URL information to and from a {@link ViewParamsCodec}
09: *
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: *
12: */
13:
14: public class RawURLState {
15: public RawURLState(Map params, String pathinfo) {
16: this .params = params;
17: this .pathinfo = pathinfo;
18: }
19:
20: public RawURLState() {
21: }
22:
23: /** The "pathinfo" segment of the URL, which starts with a leading slash (/).
24: * This may be null for parsing, but must be set for rendering.
25: */
26: public String pathinfo;
27: /** The (equivalent) request parameter map, a map of String to String[].
28: * This must be set.*/
29: public Map params;
30: /** An optional anchor, to be emitted following the URL with #, if supported */
31: public String anchor;
32: }
|