1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.request; |
16 |
| |
17 |
| import javax.servlet.http.HttpServletRequest; |
18 |
| import javax.servlet.http.HttpServletRequestWrapper; |
19 |
| |
20 |
| import org.apache.hivemind.util.Defense; |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| public class DecodedRequestWrapper extends HttpServletRequestWrapper |
30 |
| { |
31 |
| private final DecodedRequest _decoded; |
32 |
| |
33 |
2
| public DecodedRequestWrapper(HttpServletRequest request, DecodedRequest decoded)
|
34 |
| { |
35 |
2
| super(request);
|
36 |
| |
37 |
2
| Defense.notNull(decoded, "decoded");
|
38 |
| |
39 |
2
| _decoded = decoded;
|
40 |
| } |
41 |
| |
42 |
2
| public String getRequestURI()
|
43 |
| { |
44 |
2
| return _decoded.getRequestURI();
|
45 |
| } |
46 |
| |
47 |
1
| public String getScheme()
|
48 |
| { |
49 |
1
| return _decoded.getScheme();
|
50 |
| } |
51 |
| |
52 |
1
| public String getServerName()
|
53 |
| { |
54 |
1
| return _decoded.getServerName();
|
55 |
| } |
56 |
| |
57 |
1
| public int getServerPort()
|
58 |
| { |
59 |
1
| return _decoded.getServerPort();
|
60 |
| } |
61 |
| |
62 |
0
| public String toString()
|
63 |
| { |
64 |
0
| return "<DecodedRequestWrapper for " + getRequest() + ">";
|
65 |
| } |
66 |
| } |