KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icesoft > faces > webapp > parser > StubHttpServletResponse


1 /*
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * "The contents of this file are subject to the Mozilla Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
11  * License for the specific language governing rights and limitations under
12  * the License.
13  *
14  * The Original Code is ICEfaces 1.5 open source software code, released
15  * November 5, 2006. The Initial Developer of the Original Code is ICEsoft
16  * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
17  * 2004-2006 ICEsoft Technologies Canada, Corp. All Rights Reserved.
18  *
19  * Contributor(s): _____________________.
20  *
21  * Alternatively, the contents of this file may be used under the terms of
22  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"
23  * License), in which case the provisions of the LGPL License are
24  * applicable instead of those above. If you wish to allow use of your
25  * version of this file only under the terms of the LGPL License and not to
26  * allow others to use your version of this file under the MPL, indicate
27  * your decision by deleting the provisions above and replace them with
28  * the notice and other provisions required by the LGPL License. If you do
29  * not delete the provisions above, a recipient may use your version of
30  * this file under either the MPL or the LGPL License."
31  *
32  */

33
34 package com.icesoft.faces.webapp.parser;
35
36 import javax.servlet.ServletOutputStream JavaDoc;
37 import javax.servlet.http.Cookie JavaDoc;
38 import javax.servlet.http.HttpServletResponse JavaDoc;
39 import java.io.IOException JavaDoc;
40 import java.io.PrintWriter JavaDoc;
41 import java.util.Locale JavaDoc;
42
43
44 /**
45  * This is a stubbed out version of the HttpServletResponse class. Only the
46  * mimimum number of members required by the parser are implemented.
47  *
48  * @author Adnan Durrani
49  */

50 public class StubHttpServletResponse implements HttpServletResponse JavaDoc {
51
52
53     /*
54      * @see javax.servlet.ServletResponse#setLocale(java.util.Locale)
55      */

56     public void setLocale(Locale JavaDoc local) {
57     }
58
59     /*
60      * @see javax.servlet.ServletResponse#getLocale()
61      */

62     public Locale JavaDoc getLocale() {
63         throw new UnsupportedOperationException JavaDoc();
64     }
65
66     /*
67     * @see javax.servlet.ServletResponse#setContentType(java.lang.String)
68     */

69     public void setContentType(String JavaDoc contentType) {
70         throw new UnsupportedOperationException JavaDoc();
71     }
72
73     /*
74     * @see javax.servlet.ServletResponse#getContentType()
75     */

76     public String JavaDoc getContentType() {
77         throw new UnsupportedOperationException JavaDoc();
78     }
79
80     /*
81     * @see javax.servlet.ServletResponse#setCharacterEncoding(java.lang.String)
82     */

83     public void setCharacterEncoding(String JavaDoc characterEncoding) {
84         throw new UnsupportedOperationException JavaDoc();
85     }
86
87     /*
88     * @see javax.servlet.ServletResponse#getCharacterEncoding()
89     */

90     public String JavaDoc getCharacterEncoding() {
91         throw new UnsupportedOperationException JavaDoc();
92     }
93
94     /*
95     * @see javax.servlet.http.HttpServletResponse#encodeUrl(java.lang.String)
96     */

97     public String JavaDoc encodeUrl(String JavaDoc url) {
98         throw new UnsupportedOperationException JavaDoc();
99     }
100
101     /*
102      * @see javax.servlet.http.HttpServletResponse#encodeURL(java.lang.String)
103      */

104     public String JavaDoc encodeURL(String JavaDoc url) {
105         throw new UnsupportedOperationException JavaDoc();
106     }
107
108     /*
109      * @see javax.servlet.http.HttpServletResponse#encodeRedirectUrl(java.lang.String)
110      */

111     public String JavaDoc encodeRedirectUrl(String JavaDoc redirectedUrl) {
112         throw new UnsupportedOperationException JavaDoc();
113     }
114
115
116     /*
117      * @see javax.servlet.http.HttpServletResponse#encodeRedirectURL(java.lang.String)
118      */

119     public String JavaDoc encodeRedirectURL(String JavaDoc redirectedUrl) {
120         throw new UnsupportedOperationException JavaDoc();
121     }
122
123     /*
124     * @see javax.servlet.http.HttpServletResponse#addCookie(javax.servlet.http.Cookie)
125     */

126     public void addCookie(Cookie JavaDoc arg0) {
127         throw new UnsupportedOperationException JavaDoc();
128     }
129
130     /*
131      * @see javax.servlet.http.HttpServletResponse#containsHeader(java.lang.String)
132      */

133     public boolean containsHeader(String JavaDoc arg0) {
134         throw new UnsupportedOperationException JavaDoc();
135     }
136
137     /*
138      * @see javax.servlet.http.HttpServletResponse#sendError(int, java.lang.String)
139      */

140     public void sendError(int arg0, String JavaDoc arg1) throws IOException JavaDoc {
141         throw new UnsupportedOperationException JavaDoc();
142     }
143
144     /*
145      * @see javax.servlet.http.HttpServletResponse#sendError(int)
146      */

147     public void sendError(int arg0) throws IOException JavaDoc {
148         throw new UnsupportedOperationException JavaDoc();
149     }
150
151     /*
152      * @see javax.servlet.http.HttpServletResponse#sendRedirect(java.lang.String)
153      */

154     public void sendRedirect(String JavaDoc arg0) throws IOException JavaDoc {
155         throw new UnsupportedOperationException JavaDoc();
156     }
157
158     /*
159      * @see javax.servlet.http.HttpServletResponse#setDateHeader(java.lang.String, long)
160      */

161     public void setDateHeader(String JavaDoc arg0, long arg1) {
162         throw new UnsupportedOperationException JavaDoc();
163     }
164
165     /*
166      * @see javax.servlet.http.HttpServletResponse#addDateHeader(java.lang.String, long)
167      */

168     public void addDateHeader(String JavaDoc arg0, long arg1) {
169         throw new UnsupportedOperationException JavaDoc();
170     }
171
172     /*
173      * @see javax.servlet.http.HttpServletResponse#setHeader(java.lang.String, java.lang.String)
174      */

175     public void setHeader(String JavaDoc arg0, String JavaDoc arg1) {
176         throw new UnsupportedOperationException JavaDoc();
177     }
178
179     /*
180      * @see javax.servlet.http.HttpServletResponse#addHeader(java.lang.String, java.lang.String)
181      */

182     public void addHeader(String JavaDoc arg0, String JavaDoc arg1) {
183         throw new UnsupportedOperationException JavaDoc();
184     }
185
186     /*
187      * @see javax.servlet.http.HttpServletResponse#setIntHeader(java.lang.String, int)
188      */

189     public void setIntHeader(String JavaDoc arg0, int arg1) {
190         throw new UnsupportedOperationException JavaDoc();
191     }
192
193     /*
194      * @see javax.servlet.http.HttpServletResponse#addIntHeader(java.lang.String, int)
195      */

196     public void addIntHeader(String JavaDoc arg0, int arg1) {
197         throw new UnsupportedOperationException JavaDoc();
198     }
199
200     /*
201      * @see javax.servlet.http.HttpServletResponse#setStatus(int)
202      */

203     public void setStatus(int arg0) {
204         throw new UnsupportedOperationException JavaDoc();
205     }
206
207     /*
208      * @see javax.servlet.http.HttpServletResponse#setStatus(int, java.lang.String)
209      */

210     public void setStatus(int arg0, String JavaDoc arg1) {
211         throw new UnsupportedOperationException JavaDoc();
212     }
213
214     /*
215      * @see javax.servlet.ServletResponse#getOutputStream()
216      */

217     public ServletOutputStream JavaDoc getOutputStream() throws IOException JavaDoc {
218         throw new UnsupportedOperationException JavaDoc();
219     }
220
221     /*
222      * @see javax.servlet.ServletResponse#getWriter()
223      */

224     public PrintWriter JavaDoc getWriter() throws IOException JavaDoc {
225         throw new UnsupportedOperationException JavaDoc();
226     }
227
228     /*
229      * @see javax.servlet.ServletResponse#setContentLength(int)
230      */

231     public void setContentLength(int arg0) {
232         throw new UnsupportedOperationException JavaDoc();
233     }
234
235     /*
236      * @see javax.servlet.ServletResponse#setBufferSize(int)
237      */

238     public void setBufferSize(int arg0) {
239         throw new UnsupportedOperationException JavaDoc();
240     }
241
242     /*
243      * @see javax.servlet.ServletResponse#getBufferSize()
244      */

245     public int getBufferSize() {
246         throw new UnsupportedOperationException JavaDoc();
247     }
248
249     /*
250      * @see javax.servlet.ServletResponse#flushBuffer()
251      */

252     public void flushBuffer() throws IOException JavaDoc {
253         throw new UnsupportedOperationException JavaDoc();
254     }
255
256     /*
257      * @see javax.servlet.ServletResponse#resetBuffer()
258      */

259     public void resetBuffer() {
260         throw new UnsupportedOperationException JavaDoc();
261     }
262
263     /*
264      * @see javax.servlet.ServletResponse#isCommitted()
265      */

266     public boolean isCommitted() {
267         throw new UnsupportedOperationException JavaDoc();
268     }
269
270     /*
271      * @see javax.servlet.ServletResponse#reset()
272      */

273     public void reset() {
274         throw new UnsupportedOperationException JavaDoc();
275     }
276 }
277
Popular Tags