1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
package org.apache.tiles.request; |
22 | |
|
23 | |
import java.io.IOException; |
24 | |
import java.io.OutputStream; |
25 | |
import java.io.PrintWriter; |
26 | |
import java.io.Writer; |
27 | |
import java.util.Collections; |
28 | |
import java.util.List; |
29 | |
import java.util.Locale; |
30 | |
import java.util.Map; |
31 | |
|
32 | |
import org.apache.tiles.request.attribute.Addable; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | 1 | @Deprecated |
41 | |
public class DispatchRequestWrapper extends AbstractRequest implements |
42 | |
RequestWrapper { |
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
private DispatchRequest context; |
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | 21 | public DispatchRequestWrapper(DispatchRequest context) { |
55 | 21 | this.context = context; |
56 | 21 | } |
57 | |
|
58 | |
|
59 | |
public DispatchRequest getWrappedRequest() { |
60 | 4 | return context; |
61 | |
} |
62 | |
|
63 | |
|
64 | |
public Map<String, String> getHeader() { |
65 | 1 | return context.getHeader(); |
66 | |
} |
67 | |
|
68 | |
|
69 | |
public Map<String, String[]> getHeaderValues() { |
70 | 1 | return context.getHeaderValues(); |
71 | |
} |
72 | |
|
73 | |
|
74 | |
public Addable<String> getResponseHeaders() { |
75 | 1 | return context.getResponseHeaders(); |
76 | |
} |
77 | |
|
78 | |
|
79 | |
public Map<String, Object> getContext(String scope) { |
80 | 5 | return context.getContext(scope); |
81 | |
} |
82 | |
|
83 | |
|
84 | |
public List<String> getAvailableScopes() { |
85 | 1 | return context.getAvailableScopes(); |
86 | |
} |
87 | |
|
88 | |
|
89 | |
public ApplicationContext getApplicationContext() { |
90 | 1 | return context.getApplicationContext(); |
91 | |
} |
92 | |
|
93 | |
|
94 | |
public void dispatch(String path) throws IOException { |
95 | 1 | context.dispatch(path); |
96 | 1 | } |
97 | |
|
98 | |
|
99 | |
public void include(String path) throws IOException { |
100 | 1 | context.include(path); |
101 | 1 | } |
102 | |
|
103 | |
|
104 | |
public OutputStream getOutputStream() throws IOException { |
105 | 1 | return context.getOutputStream(); |
106 | |
} |
107 | |
|
108 | |
|
109 | |
public Writer getWriter() throws IOException { |
110 | 1 | return context.getWriter(); |
111 | |
} |
112 | |
|
113 | |
|
114 | |
public PrintWriter getPrintWriter() throws IOException { |
115 | 1 | return context.getPrintWriter(); |
116 | |
} |
117 | |
|
118 | |
|
119 | |
public boolean isResponseCommitted() { |
120 | 1 | return context.isResponseCommitted(); |
121 | |
} |
122 | |
|
123 | |
|
124 | |
public void setContentType(String contentType) { |
125 | 1 | context.setContentType(contentType); |
126 | 1 | } |
127 | |
|
128 | |
|
129 | |
public Map<String, String> getParam() { |
130 | 1 | return context.getParam(); |
131 | |
} |
132 | |
|
133 | |
|
134 | |
public Map<String, String[]> getParamValues() { |
135 | 1 | return context.getParamValues(); |
136 | |
} |
137 | |
|
138 | |
|
139 | |
public Locale getRequestLocale() { |
140 | 1 | return context.getRequestLocale(); |
141 | |
} |
142 | |
|
143 | |
|
144 | |
public boolean isUserInRole(String role) { |
145 | 1 | return context.isUserInRole(role); |
146 | |
} |
147 | |
} |