This project has retired. For details please refer to its
Attic page.
DispatchRequestWrapper xref
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 @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 public DispatchRequestWrapper(DispatchRequest context) {
55 this.context = context;
56 }
57
58
59 public DispatchRequest getWrappedRequest() {
60 return context;
61 }
62
63
64 public Map<String, String> getHeader() {
65 return context.getHeader();
66 }
67
68
69 public Map<String, String[]> getHeaderValues() {
70 return context.getHeaderValues();
71 }
72
73
74 public Addable<String> getResponseHeaders() {
75 return context.getResponseHeaders();
76 }
77
78
79 public Map<String, Object> getContext(String scope) {
80 return context.getContext(scope);
81 }
82
83
84 public List<String> getAvailableScopes() {
85 return context.getAvailableScopes();
86 }
87
88
89 public ApplicationContext getApplicationContext() {
90 return context.getApplicationContext();
91 }
92
93
94 public void dispatch(String path) throws IOException {
95 context.dispatch(path);
96 }
97
98
99 public void include(String path) throws IOException {
100 context.include(path);
101 }
102
103
104 public OutputStream getOutputStream() throws IOException {
105 return context.getOutputStream();
106 }
107
108
109 public Writer getWriter() throws IOException {
110 return context.getWriter();
111 }
112
113
114 public PrintWriter getPrintWriter() throws IOException {
115 return context.getPrintWriter();
116 }
117
118
119 public boolean isResponseCommitted() {
120 return context.isResponseCommitted();
121 }
122
123
124 public void setContentType(String contentType) {
125 context.setContentType(contentType);
126 }
127
128
129 public Map<String, String> getParam() {
130 return context.getParam();
131 }
132
133
134 public Map<String, String[]> getParamValues() {
135 return context.getParamValues();
136 }
137
138
139 public Locale getRequestLocale() {
140 return context.getRequestLocale();
141 }
142
143
144 public boolean isUserInRole(String role) {
145 return context.isUserInRole(role);
146 }
147 }