01: /*
02: * Created on Nov 19, 2006
03: */
04: package uk.org.ponder.rsf.request;
05:
06: import java.util.Map;
07:
08: /** A static implementation of EarlyRequestParser which returns already
09: * determined values. Most useful with the {@link LazarusRedirector}.
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: */
12:
13: public class StaticEarlyRequestParser implements EarlyRequestParser {
14: private Map multipartMap;
15: private String pathInfo;
16: private Map requestMap;
17: private String requestType;
18: private String environmentType;
19:
20: public StaticEarlyRequestParser(Map multipartMap, String pathInfo,
21: Map requestMap, String requestType, String environmentType) {
22: this .multipartMap = multipartMap;
23: this .pathInfo = pathInfo;
24: this .requestMap = requestMap;
25: this .requestType = requestType;
26: }
27:
28: public Map getMultipartMap() {
29: return multipartMap;
30: }
31:
32: public String getPathInfo() {
33: return pathInfo;
34: }
35:
36: public Map getRequestMap() {
37: return requestMap;
38: }
39:
40: public String getRequestType() {
41: return requestType;
42: }
43:
44: public String getEnvironmentType() {
45: return environmentType;
46: }
47:
48: }
|