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.util.Iterator; |
22 | |
import java.util.List; |
23 | |
import java.util.Map; |
24 | |
|
25 | |
import javax.el.ELContext; |
26 | |
import javax.faces.FacesWrapper; |
27 | |
import javax.faces.application.Application; |
28 | |
import javax.faces.application.FacesMessage; |
29 | |
import javax.faces.application.ProjectStage; |
30 | |
import javax.faces.application.FacesMessage.Severity; |
31 | |
import javax.faces.component.UIViewRoot; |
32 | |
import javax.faces.event.PhaseId; |
33 | |
import javax.faces.render.RenderKit; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | 0 | public abstract class FacesContextWrapper extends FacesContext implements FacesWrapper<FacesContext> |
42 | |
{ |
43 | |
@Override |
44 | |
public void addMessage(String clientId, FacesMessage message) |
45 | |
{ |
46 | 0 | getWrapped().addMessage(clientId, message); |
47 | 0 | } |
48 | |
|
49 | |
@Override |
50 | |
public Application getApplication() |
51 | |
{ |
52 | 0 | return getWrapped().getApplication(); |
53 | |
} |
54 | |
|
55 | |
@Override |
56 | |
public Map<Object, Object> getAttributes() |
57 | |
{ |
58 | 0 | return getWrapped().getAttributes(); |
59 | |
} |
60 | |
|
61 | |
@Override |
62 | |
public Iterator<String> getClientIdsWithMessages() |
63 | |
{ |
64 | 0 | return getWrapped().getClientIdsWithMessages(); |
65 | |
} |
66 | |
|
67 | |
@Override |
68 | |
public PhaseId getCurrentPhaseId() |
69 | |
{ |
70 | 0 | return getWrapped().getCurrentPhaseId(); |
71 | |
} |
72 | |
|
73 | |
@Override |
74 | |
public ELContext getELContext() |
75 | |
{ |
76 | 0 | return getWrapped().getELContext(); |
77 | |
} |
78 | |
|
79 | |
@Override |
80 | |
public ExceptionHandler getExceptionHandler() |
81 | |
{ |
82 | 0 | return getWrapped().getExceptionHandler(); |
83 | |
} |
84 | |
|
85 | |
@Override |
86 | |
public ExternalContext getExternalContext() |
87 | |
{ |
88 | 0 | return getWrapped().getExternalContext(); |
89 | |
} |
90 | |
|
91 | |
@Override |
92 | |
public Severity getMaximumSeverity() |
93 | |
{ |
94 | 0 | return getWrapped().getMaximumSeverity(); |
95 | |
} |
96 | |
|
97 | |
@Override |
98 | |
public List<FacesMessage> getMessageList() |
99 | |
{ |
100 | 0 | return getWrapped().getMessageList(); |
101 | |
} |
102 | |
|
103 | |
@Override |
104 | |
public List<FacesMessage> getMessageList(String clientId) |
105 | |
{ |
106 | 0 | return getWrapped().getMessageList(clientId); |
107 | |
} |
108 | |
|
109 | |
@Override |
110 | |
public Iterator<FacesMessage> getMessages() |
111 | |
{ |
112 | 0 | return getWrapped().getMessages(); |
113 | |
} |
114 | |
|
115 | |
@Override |
116 | |
public Iterator<FacesMessage> getMessages(String clientId) |
117 | |
{ |
118 | 0 | return getWrapped().getMessages(clientId); |
119 | |
} |
120 | |
|
121 | |
@Override |
122 | |
public PartialViewContext getPartialViewContext() |
123 | |
{ |
124 | 0 | return getWrapped().getPartialViewContext(); |
125 | |
} |
126 | |
|
127 | |
@Override |
128 | |
public RenderKit getRenderKit() |
129 | |
{ |
130 | 0 | return getWrapped().getRenderKit(); |
131 | |
} |
132 | |
|
133 | |
@Override |
134 | |
public boolean getRenderResponse() |
135 | |
{ |
136 | 0 | return getWrapped().getRenderResponse(); |
137 | |
} |
138 | |
|
139 | |
@Override |
140 | |
public boolean getResponseComplete() |
141 | |
{ |
142 | 0 | return getWrapped().getResponseComplete(); |
143 | |
} |
144 | |
|
145 | |
@Override |
146 | |
public ResponseStream getResponseStream() |
147 | |
{ |
148 | 0 | return getWrapped().getResponseStream(); |
149 | |
} |
150 | |
|
151 | |
@Override |
152 | |
public ResponseWriter getResponseWriter() |
153 | |
{ |
154 | 0 | return getWrapped().getResponseWriter(); |
155 | |
} |
156 | |
|
157 | |
@Override |
158 | |
public boolean isValidationFailed() |
159 | |
{ |
160 | 0 | return getWrapped().isValidationFailed(); |
161 | |
} |
162 | |
|
163 | |
@Override |
164 | |
public UIViewRoot getViewRoot() |
165 | |
{ |
166 | 0 | return getWrapped().getViewRoot(); |
167 | |
} |
168 | |
|
169 | |
public abstract FacesContext getWrapped(); |
170 | |
|
171 | |
@Override |
172 | |
public boolean isPostback() |
173 | |
{ |
174 | 0 | return getWrapped().isPostback(); |
175 | |
} |
176 | |
|
177 | |
@Override |
178 | |
public boolean isProcessingEvents() |
179 | |
{ |
180 | 0 | return getWrapped().isProcessingEvents(); |
181 | |
} |
182 | |
|
183 | |
@Override |
184 | |
public void release() |
185 | |
{ |
186 | 0 | getWrapped().release(); |
187 | 0 | } |
188 | |
|
189 | |
@Override |
190 | |
public void renderResponse() |
191 | |
{ |
192 | 0 | getWrapped().renderResponse(); |
193 | 0 | } |
194 | |
|
195 | |
@Override |
196 | |
public void responseComplete() |
197 | |
{ |
198 | 0 | getWrapped().responseComplete(); |
199 | 0 | } |
200 | |
|
201 | |
@Override |
202 | |
public void setCurrentPhaseId(PhaseId currentPhaseId) |
203 | |
{ |
204 | 0 | getWrapped().setCurrentPhaseId(currentPhaseId); |
205 | 0 | } |
206 | |
|
207 | |
@Override |
208 | |
public void setExceptionHandler(ExceptionHandler exceptionHandler) |
209 | |
{ |
210 | 0 | getWrapped().setExceptionHandler(exceptionHandler); |
211 | 0 | } |
212 | |
|
213 | |
@Override |
214 | |
public void setProcessingEvents(boolean processingEvents) |
215 | |
{ |
216 | 0 | getWrapped().setProcessingEvents(processingEvents); |
217 | 0 | } |
218 | |
|
219 | |
@Override |
220 | |
public void setResponseStream(ResponseStream responseStream) |
221 | |
{ |
222 | 0 | getWrapped().setResponseStream(responseStream); |
223 | 0 | } |
224 | |
|
225 | |
@Override |
226 | |
public void setResponseWriter(ResponseWriter responseWriter) |
227 | |
{ |
228 | 0 | getWrapped().setResponseWriter(responseWriter); |
229 | 0 | } |
230 | |
|
231 | |
@Override |
232 | |
public void setViewRoot(UIViewRoot root) |
233 | |
{ |
234 | 0 | getWrapped().setViewRoot(root); |
235 | 0 | } |
236 | |
|
237 | |
@Override |
238 | |
public void validationFailed() |
239 | |
{ |
240 | 0 | getWrapped().validationFailed(); |
241 | 0 | } |
242 | |
|
243 | |
@Override |
244 | |
public boolean isProjectStage(ProjectStage stage) |
245 | |
{ |
246 | 0 | return getWrapped().isProjectStage(stage); |
247 | |
} |
248 | |
} |