1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package javax.faces.context; |
20 | |
|
21 | |
import java.io.IOException; |
22 | |
import java.io.InputStream; |
23 | |
import java.io.OutputStream; |
24 | |
import java.io.UnsupportedEncodingException; |
25 | |
import java.io.Writer; |
26 | |
import java.net.MalformedURLException; |
27 | |
import java.net.URL; |
28 | |
import java.security.Principal; |
29 | |
import java.util.Iterator; |
30 | |
import java.util.List; |
31 | |
import java.util.Locale; |
32 | |
import java.util.Map; |
33 | |
import java.util.Set; |
34 | |
|
35 | |
import javax.faces.FacesWrapper; |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | 0 | public abstract class ExternalContextWrapper extends ExternalContext implements FacesWrapper<ExternalContext> |
44 | |
{ |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
public ExternalContextWrapper() |
50 | 0 | { |
51 | 0 | } |
52 | |
|
53 | |
@Override |
54 | |
public void addResponseCookie(String name, String value, Map<String, Object> properties) |
55 | |
{ |
56 | 0 | getWrapped().addResponseCookie(name, value, properties); |
57 | 0 | } |
58 | |
|
59 | |
@Override |
60 | |
public void addResponseHeader(String name, String value) |
61 | |
{ |
62 | 0 | getWrapped().addResponseHeader(name, value); |
63 | 0 | } |
64 | |
|
65 | |
@Override |
66 | |
public void dispatch(String path) throws IOException |
67 | |
{ |
68 | 0 | getWrapped().dispatch(path); |
69 | 0 | } |
70 | |
|
71 | |
@Override |
72 | |
public String encodeActionURL(String url) |
73 | |
{ |
74 | 0 | return getWrapped().encodeActionURL(url); |
75 | |
} |
76 | |
|
77 | |
@Override |
78 | |
public String encodeBookmarkableURL(String baseUrl, Map<String,List<String>> parameters) |
79 | |
{ |
80 | 0 | return getWrapped().encodeBookmarkableURL(baseUrl,parameters); |
81 | |
} |
82 | |
|
83 | |
@Override |
84 | |
public String encodeNamespace(String name) |
85 | |
{ |
86 | 0 | return getWrapped().encodeNamespace(name); |
87 | |
} |
88 | |
|
89 | |
@Override |
90 | |
public String encodePartialActionURL(String url) |
91 | |
{ |
92 | 0 | return getWrapped().encodePartialActionURL(url); |
93 | |
} |
94 | |
|
95 | |
@Override |
96 | |
public String encodeRedirectURL(String baseUrl,Map<String,List<String>> parameters) |
97 | |
{ |
98 | 0 | return getWrapped().encodeRedirectURL(baseUrl,parameters); |
99 | |
} |
100 | |
|
101 | |
@Override |
102 | |
public String encodeResourceURL(String url) |
103 | |
{ |
104 | 0 | return getWrapped().encodeResourceURL(url); |
105 | |
} |
106 | |
|
107 | |
@Override |
108 | |
public Map<String, Object> getApplicationMap() |
109 | |
{ |
110 | 0 | return getWrapped().getApplicationMap(); |
111 | |
} |
112 | |
|
113 | |
@Override |
114 | |
public String getAuthType() |
115 | |
{ |
116 | 0 | return getWrapped().getAuthType(); |
117 | |
} |
118 | |
|
119 | |
@Override |
120 | |
public Object getContext() |
121 | |
{ |
122 | 0 | return getWrapped().getContext(); |
123 | |
} |
124 | |
|
125 | |
@Override |
126 | |
public String getContextName() |
127 | |
{ |
128 | 0 | return getWrapped().getContextName(); |
129 | |
} |
130 | |
|
131 | |
@Override |
132 | |
public Flash getFlash() |
133 | |
{ |
134 | 0 | return getWrapped().getFlash(); |
135 | |
} |
136 | |
|
137 | |
@Override |
138 | |
public String getInitParameter(String name) |
139 | |
{ |
140 | 0 | return getWrapped().getInitParameter(name); |
141 | |
} |
142 | |
|
143 | |
@Override |
144 | |
public Map getInitParameterMap() |
145 | |
{ |
146 | 0 | return getWrapped().getInitParameterMap(); |
147 | |
} |
148 | |
|
149 | |
@Override |
150 | |
public String getMimeType(String file) |
151 | |
{ |
152 | 0 | return getWrapped().getMimeType(file); |
153 | |
} |
154 | |
|
155 | |
@Override |
156 | |
public String getRealPath(String path) |
157 | |
{ |
158 | 0 | return getWrapped().getRealPath(path); |
159 | |
} |
160 | |
|
161 | |
@Override |
162 | |
public String getRemoteUser() |
163 | |
{ |
164 | 0 | return getWrapped().getRemoteUser(); |
165 | |
} |
166 | |
|
167 | |
@Override |
168 | |
public Object getRequest() |
169 | |
{ |
170 | 0 | return getWrapped().getRequest(); |
171 | |
} |
172 | |
|
173 | |
@Override |
174 | |
public String getRequestCharacterEncoding() |
175 | |
{ |
176 | 0 | return getWrapped().getRequestCharacterEncoding(); |
177 | |
} |
178 | |
|
179 | |
@Override |
180 | |
public int getRequestContentLength() |
181 | |
{ |
182 | 0 | return getWrapped().getRequestContentLength(); |
183 | |
} |
184 | |
|
185 | |
@Override |
186 | |
public String getRequestContentType() |
187 | |
{ |
188 | 0 | return getWrapped().getRequestContentType(); |
189 | |
} |
190 | |
|
191 | |
@Override |
192 | |
public String getRequestContextPath() |
193 | |
{ |
194 | 0 | return getWrapped().getRequestContextPath(); |
195 | |
} |
196 | |
|
197 | |
@Override |
198 | |
public Map<String, Object> getRequestCookieMap() |
199 | |
{ |
200 | 0 | return getWrapped().getRequestCookieMap(); |
201 | |
} |
202 | |
|
203 | |
@Override |
204 | |
public Map<String, String> getRequestHeaderMap() |
205 | |
{ |
206 | 0 | return getWrapped().getRequestHeaderMap(); |
207 | |
} |
208 | |
|
209 | |
@Override |
210 | |
public Map<String, String[]> getRequestHeaderValuesMap() |
211 | |
{ |
212 | 0 | return getWrapped().getRequestHeaderValuesMap(); |
213 | |
} |
214 | |
|
215 | |
@Override |
216 | |
public Locale getRequestLocale() |
217 | |
{ |
218 | 0 | return getWrapped().getRequestLocale(); |
219 | |
} |
220 | |
|
221 | |
@Override |
222 | |
public Iterator<Locale> getRequestLocales() |
223 | |
{ |
224 | 0 | return getWrapped().getRequestLocales(); |
225 | |
} |
226 | |
|
227 | |
@Override |
228 | |
public Map<String, Object> getRequestMap() |
229 | |
{ |
230 | 0 | return getWrapped().getRequestMap(); |
231 | |
} |
232 | |
|
233 | |
@Override |
234 | |
public Map<String, String> getRequestParameterMap() |
235 | |
{ |
236 | 0 | return getWrapped().getRequestParameterMap(); |
237 | |
} |
238 | |
|
239 | |
@Override |
240 | |
public Iterator<String> getRequestParameterNames() |
241 | |
{ |
242 | 0 | return getWrapped().getRequestParameterNames(); |
243 | |
} |
244 | |
|
245 | |
@Override |
246 | |
public Map<String, String[]> getRequestParameterValuesMap() |
247 | |
{ |
248 | 0 | return getWrapped().getRequestParameterValuesMap(); |
249 | |
} |
250 | |
|
251 | |
@Override |
252 | |
public String getRequestPathInfo() |
253 | |
{ |
254 | 0 | return getWrapped().getRequestPathInfo(); |
255 | |
} |
256 | |
|
257 | |
@Override |
258 | |
public String getRequestScheme() |
259 | |
{ |
260 | 0 | return getWrapped().getRequestScheme(); |
261 | |
} |
262 | |
|
263 | |
@Override |
264 | |
public String getRequestServerName() |
265 | |
{ |
266 | 0 | return getWrapped().getRequestServerName(); |
267 | |
} |
268 | |
|
269 | |
@Override |
270 | |
public int getRequestServerPort() |
271 | |
{ |
272 | 0 | return getWrapped().getRequestServerPort(); |
273 | |
} |
274 | |
|
275 | |
@Override |
276 | |
public String getRequestServletPath() |
277 | |
{ |
278 | 0 | return getWrapped().getRequestServletPath(); |
279 | |
} |
280 | |
|
281 | |
@Override |
282 | |
public URL getResource(String path) throws MalformedURLException |
283 | |
{ |
284 | 0 | return getWrapped().getResource(path); |
285 | |
} |
286 | |
|
287 | |
@Override |
288 | |
public InputStream getResourceAsStream(String path) |
289 | |
{ |
290 | 0 | return getWrapped().getResourceAsStream(path); |
291 | |
} |
292 | |
|
293 | |
@Override |
294 | |
public Set<String> getResourcePaths(String path) |
295 | |
{ |
296 | 0 | return getWrapped().getResourcePaths(path); |
297 | |
} |
298 | |
|
299 | |
@Override |
300 | |
public Object getResponse() |
301 | |
{ |
302 | 0 | return getWrapped().getResponse(); |
303 | |
} |
304 | |
|
305 | |
@Override |
306 | |
public int getResponseBufferSize() |
307 | |
{ |
308 | 0 | return getWrapped().getResponseBufferSize(); |
309 | |
} |
310 | |
|
311 | |
@Override |
312 | |
public String getResponseCharacterEncoding() |
313 | |
{ |
314 | 0 | return getWrapped().getResponseCharacterEncoding(); |
315 | |
} |
316 | |
|
317 | |
@Override |
318 | |
public String getResponseContentType() |
319 | |
{ |
320 | 0 | return getWrapped().getResponseContentType(); |
321 | |
} |
322 | |
|
323 | |
@Override |
324 | |
public OutputStream getResponseOutputStream() throws IOException |
325 | |
{ |
326 | 0 | return getWrapped().getResponseOutputStream(); |
327 | |
} |
328 | |
|
329 | |
@Override |
330 | |
public Writer getResponseOutputWriter() throws IOException |
331 | |
{ |
332 | 0 | return getWrapped().getResponseOutputWriter(); |
333 | |
} |
334 | |
|
335 | |
@Override |
336 | |
public Object getSession(boolean create) |
337 | |
{ |
338 | 0 | return getWrapped().getSession(create); |
339 | |
} |
340 | |
|
341 | |
@Override |
342 | |
public Map<String, Object> getSessionMap() |
343 | |
{ |
344 | 0 | return getWrapped().getSessionMap(); |
345 | |
} |
346 | |
|
347 | |
@Override |
348 | |
public Principal getUserPrincipal() |
349 | |
{ |
350 | 0 | return getWrapped().getUserPrincipal(); |
351 | |
} |
352 | |
|
353 | |
public abstract ExternalContext getWrapped(); |
354 | |
|
355 | |
@Override |
356 | |
public void invalidateSession() |
357 | |
{ |
358 | 0 | getWrapped().invalidateSession(); |
359 | 0 | } |
360 | |
|
361 | |
@Override |
362 | |
public boolean isResponseCommitted() |
363 | |
{ |
364 | 0 | return getWrapped().isResponseCommitted(); |
365 | |
} |
366 | |
|
367 | |
@Override |
368 | |
public boolean isUserInRole(String role) |
369 | |
{ |
370 | 0 | return getWrapped().isUserInRole(role); |
371 | |
} |
372 | |
|
373 | |
@Override |
374 | |
public void log(String message, Throwable exception) |
375 | |
{ |
376 | 0 | getWrapped().log(message, exception); |
377 | 0 | } |
378 | |
|
379 | |
@Override |
380 | |
public void log(String message) |
381 | |
{ |
382 | 0 | getWrapped().log(message); |
383 | 0 | } |
384 | |
|
385 | |
@Override |
386 | |
public void redirect(String url) throws IOException |
387 | |
{ |
388 | 0 | getWrapped().redirect(url); |
389 | 0 | } |
390 | |
|
391 | |
@Override |
392 | |
public void responseFlushBuffer() throws IOException |
393 | |
{ |
394 | 0 | getWrapped().responseFlushBuffer(); |
395 | 0 | } |
396 | |
|
397 | |
@Override |
398 | |
public void responseReset() |
399 | |
{ |
400 | 0 | getWrapped().responseReset(); |
401 | 0 | } |
402 | |
|
403 | |
@Override |
404 | |
public void responseSendError(int statusCode, String message) throws IOException |
405 | |
{ |
406 | 0 | getWrapped().responseSendError(statusCode, message); |
407 | 0 | } |
408 | |
|
409 | |
@Override |
410 | |
public void setRequest(Object request) |
411 | |
{ |
412 | 0 | getWrapped().setRequest(request); |
413 | 0 | } |
414 | |
|
415 | |
@Override |
416 | |
public void setRequestCharacterEncoding(String encoding) throws UnsupportedEncodingException |
417 | |
{ |
418 | 0 | getWrapped().setRequestCharacterEncoding(encoding); |
419 | 0 | } |
420 | |
|
421 | |
@Override |
422 | |
public void setResponse(Object response) |
423 | |
{ |
424 | 0 | getWrapped().setResponse(response); |
425 | 0 | } |
426 | |
|
427 | |
@Override |
428 | |
public void setResponseBufferSize(int size) |
429 | |
{ |
430 | 0 | getWrapped().setResponseBufferSize(size); |
431 | 0 | } |
432 | |
|
433 | |
@Override |
434 | |
public void setResponseCharacterEncoding(String encoding) |
435 | |
{ |
436 | 0 | getWrapped().setResponseCharacterEncoding(encoding); |
437 | 0 | } |
438 | |
|
439 | |
@Override |
440 | |
public void setResponseContentLength(int length) |
441 | |
{ |
442 | 0 | getWrapped().setResponseContentLength(length); |
443 | 0 | } |
444 | |
|
445 | |
@Override |
446 | |
public void setResponseContentType(String contentType) |
447 | |
{ |
448 | 0 | getWrapped().setResponseContentType(contentType); |
449 | 0 | } |
450 | |
|
451 | |
@Override |
452 | |
public void setResponseHeader(String name, String value) |
453 | |
{ |
454 | 0 | getWrapped().setResponseHeader(name, value); |
455 | 0 | } |
456 | |
|
457 | |
@Override |
458 | |
public void setResponseStatus(int statusCode) |
459 | |
{ |
460 | 0 | getWrapped().setResponseStatus(statusCode); |
461 | 0 | } |
462 | |
} |