1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.orchestra.lib.jsf;
20
21 import java.util.Iterator;
22
23 import javax.el.ELContext;
24 import javax.faces.application.Application;
25 import javax.faces.application.FacesMessage;
26 import javax.faces.component.UIViewRoot;
27 import javax.faces.context.ExternalContext;
28 import javax.faces.context.FacesContext;
29 import javax.faces.context.ResponseStream;
30 import javax.faces.context.ResponseWriter;
31 import javax.faces.render.RenderKit;
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 public class _FacesContextWrapper extends FacesContext
63 {
64
65
66 private final FacesContext _facesContext;
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82 public _FacesContextWrapper(FacesContext facesContext, boolean install)
83 {
84 _facesContext = facesContext;
85
86 if (install)
87 {
88 FacesContext.setCurrentInstance(this);
89 }
90 }
91
92
93
94 public void release()
95 {
96 _facesContext.release();
97 }
98
99
100
101 public final Application getApplication()
102 {
103 return _facesContext.getApplication();
104 }
105
106 public final Iterator getClientIdsWithMessages()
107 {
108 return _facesContext.getClientIdsWithMessages();
109 }
110
111 public final ExternalContext getExternalContext()
112 {
113 return _facesContext.getExternalContext();
114 }
115
116 public final FacesMessage.Severity getMaximumSeverity()
117 {
118 return _facesContext.getMaximumSeverity();
119 }
120
121 public final Iterator getMessages()
122 {
123 return _facesContext.getMessages();
124 }
125
126 public final Iterator getMessages(String clientId)
127 {
128 return _facesContext.getMessages(clientId);
129 }
130
131 public final RenderKit getRenderKit()
132 {
133 return _facesContext.getRenderKit();
134 }
135
136 public final boolean getRenderResponse()
137 {
138 return _facesContext.getRenderResponse();
139 }
140
141 public final boolean getResponseComplete()
142 {
143 return _facesContext.getResponseComplete();
144 }
145
146 public final void setResponseStream(ResponseStream responsestream)
147 {
148 _facesContext.setResponseStream(responsestream);
149 }
150
151 public final ResponseStream getResponseStream()
152 {
153 return _facesContext.getResponseStream();
154 }
155
156 public final void setResponseWriter(ResponseWriter responsewriter)
157 {
158 _facesContext.setResponseWriter(responsewriter);
159 }
160
161 public final ResponseWriter getResponseWriter()
162 {
163 return _facesContext.getResponseWriter();
164 }
165
166 public final void setViewRoot(UIViewRoot viewRoot)
167 {
168 _facesContext.setViewRoot(viewRoot);
169 }
170
171 public final UIViewRoot getViewRoot()
172 {
173 return _facesContext.getViewRoot();
174 }
175
176 public final void addMessage(String clientId, FacesMessage message)
177 {
178 _facesContext.addMessage(clientId, message);
179 }
180
181 public final void renderResponse()
182 {
183 _facesContext.renderResponse();
184 }
185
186 public final void responseComplete()
187 {
188 _facesContext.responseComplete();
189 }
190
191
192
193
194 public final ELContext getELContext()
195 {
196 return _facesContext.getELContext();
197 }
198 }