001: /*
002: * Version: MPL 1.1/GPL 2.0/LGPL 2.1
003: *
004: * "The contents of this file are subject to the Mozilla Public License
005: * Version 1.1 (the "License"); you may not use this file except in
006: * compliance with the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS"
010: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
011: * License for the specific language governing rights and limitations under
012: * the License.
013: *
014: * The Original Code is ICEfaces 1.5 open source software code, released
015: * November 5, 2006. The Initial Developer of the Original Code is ICEsoft
016: * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
017: * 2004-2006 ICEsoft Technologies Canada, Corp. All Rights Reserved.
018: *
019: * Contributor(s): _____________________.
020: *
021: * Alternatively, the contents of this file may be used under the terms of
022: * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"
023: * License), in which case the provisions of the LGPL License are
024: * applicable instead of those above. If you wish to allow use of your
025: * version of this file only under the terms of the LGPL License and not to
026: * allow others to use your version of this file under the MPL, indicate
027: * your decision by deleting the provisions above and replace them with
028: * the notice and other provisions required by the LGPL License. If you do
029: * not delete the provisions above, a recipient may use your version of
030: * this file under either the MPL or the LGPL License."
031: *
032: */
033:
034: package com.icesoft.faces.webapp.parser;
035:
036: import javax.servlet.ServletOutputStream;
037: import javax.servlet.http.Cookie;
038: import javax.servlet.http.HttpServletResponse;
039: import java.io.IOException;
040: import java.io.PrintWriter;
041: import java.util.Locale;
042:
043: /**
044: * This is a stubbed out version of the HttpServletResponse class. Only the
045: * mimimum number of members required by the parser are implemented.
046: *
047: * @author Adnan Durrani
048: */
049: public class StubHttpServletResponse implements HttpServletResponse {
050:
051: /*
052: * @see javax.servlet.ServletResponse#setLocale(java.util.Locale)
053: */
054: public void setLocale(Locale local) {
055: }
056:
057: /*
058: * @see javax.servlet.ServletResponse#getLocale()
059: */
060: public Locale getLocale() {
061: throw new UnsupportedOperationException();
062: }
063:
064: /*
065: * @see javax.servlet.ServletResponse#setContentType(java.lang.String)
066: */
067: public void setContentType(String contentType) {
068: throw new UnsupportedOperationException();
069: }
070:
071: /*
072: * @see javax.servlet.ServletResponse#getContentType()
073: */
074: public String getContentType() {
075: throw new UnsupportedOperationException();
076: }
077:
078: /*
079: * @see javax.servlet.ServletResponse#setCharacterEncoding(java.lang.String)
080: */
081: public void setCharacterEncoding(String characterEncoding) {
082: throw new UnsupportedOperationException();
083: }
084:
085: /*
086: * @see javax.servlet.ServletResponse#getCharacterEncoding()
087: */
088: public String getCharacterEncoding() {
089: throw new UnsupportedOperationException();
090: }
091:
092: /*
093: * @see javax.servlet.http.HttpServletResponse#encodeUrl(java.lang.String)
094: */
095: public String encodeUrl(String url) {
096: throw new UnsupportedOperationException();
097: }
098:
099: /*
100: * @see javax.servlet.http.HttpServletResponse#encodeURL(java.lang.String)
101: */
102: public String encodeURL(String url) {
103: throw new UnsupportedOperationException();
104: }
105:
106: /*
107: * @see javax.servlet.http.HttpServletResponse#encodeRedirectUrl(java.lang.String)
108: */
109: public String encodeRedirectUrl(String redirectedUrl) {
110: throw new UnsupportedOperationException();
111: }
112:
113: /*
114: * @see javax.servlet.http.HttpServletResponse#encodeRedirectURL(java.lang.String)
115: */
116: public String encodeRedirectURL(String redirectedUrl) {
117: throw new UnsupportedOperationException();
118: }
119:
120: /*
121: * @see javax.servlet.http.HttpServletResponse#addCookie(javax.servlet.http.Cookie)
122: */
123: public void addCookie(Cookie arg0) {
124: throw new UnsupportedOperationException();
125: }
126:
127: /*
128: * @see javax.servlet.http.HttpServletResponse#containsHeader(java.lang.String)
129: */
130: public boolean containsHeader(String arg0) {
131: throw new UnsupportedOperationException();
132: }
133:
134: /*
135: * @see javax.servlet.http.HttpServletResponse#sendError(int, java.lang.String)
136: */
137: public void sendError(int arg0, String arg1) throws IOException {
138: throw new UnsupportedOperationException();
139: }
140:
141: /*
142: * @see javax.servlet.http.HttpServletResponse#sendError(int)
143: */
144: public void sendError(int arg0) throws IOException {
145: throw new UnsupportedOperationException();
146: }
147:
148: /*
149: * @see javax.servlet.http.HttpServletResponse#sendRedirect(java.lang.String)
150: */
151: public void sendRedirect(String arg0) throws IOException {
152: throw new UnsupportedOperationException();
153: }
154:
155: /*
156: * @see javax.servlet.http.HttpServletResponse#setDateHeader(java.lang.String, long)
157: */
158: public void setDateHeader(String arg0, long arg1) {
159: throw new UnsupportedOperationException();
160: }
161:
162: /*
163: * @see javax.servlet.http.HttpServletResponse#addDateHeader(java.lang.String, long)
164: */
165: public void addDateHeader(String arg0, long arg1) {
166: throw new UnsupportedOperationException();
167: }
168:
169: /*
170: * @see javax.servlet.http.HttpServletResponse#setHeader(java.lang.String, java.lang.String)
171: */
172: public void setHeader(String arg0, String arg1) {
173: throw new UnsupportedOperationException();
174: }
175:
176: /*
177: * @see javax.servlet.http.HttpServletResponse#addHeader(java.lang.String, java.lang.String)
178: */
179: public void addHeader(String arg0, String arg1) {
180: throw new UnsupportedOperationException();
181: }
182:
183: /*
184: * @see javax.servlet.http.HttpServletResponse#setIntHeader(java.lang.String, int)
185: */
186: public void setIntHeader(String arg0, int arg1) {
187: throw new UnsupportedOperationException();
188: }
189:
190: /*
191: * @see javax.servlet.http.HttpServletResponse#addIntHeader(java.lang.String, int)
192: */
193: public void addIntHeader(String arg0, int arg1) {
194: throw new UnsupportedOperationException();
195: }
196:
197: /*
198: * @see javax.servlet.http.HttpServletResponse#setStatus(int)
199: */
200: public void setStatus(int arg0) {
201: throw new UnsupportedOperationException();
202: }
203:
204: /*
205: * @see javax.servlet.http.HttpServletResponse#setStatus(int, java.lang.String)
206: */
207: public void setStatus(int arg0, String arg1) {
208: throw new UnsupportedOperationException();
209: }
210:
211: /*
212: * @see javax.servlet.ServletResponse#getOutputStream()
213: */
214: public ServletOutputStream getOutputStream() throws IOException {
215: throw new UnsupportedOperationException();
216: }
217:
218: /*
219: * @see javax.servlet.ServletResponse#getWriter()
220: */
221: public PrintWriter getWriter() throws IOException {
222: throw new UnsupportedOperationException();
223: }
224:
225: /*
226: * @see javax.servlet.ServletResponse#setContentLength(int)
227: */
228: public void setContentLength(int arg0) {
229: throw new UnsupportedOperationException();
230: }
231:
232: /*
233: * @see javax.servlet.ServletResponse#setBufferSize(int)
234: */
235: public void setBufferSize(int arg0) {
236: throw new UnsupportedOperationException();
237: }
238:
239: /*
240: * @see javax.servlet.ServletResponse#getBufferSize()
241: */
242: public int getBufferSize() {
243: throw new UnsupportedOperationException();
244: }
245:
246: /*
247: * @see javax.servlet.ServletResponse#flushBuffer()
248: */
249: public void flushBuffer() throws IOException {
250: throw new UnsupportedOperationException();
251: }
252:
253: /*
254: * @see javax.servlet.ServletResponse#resetBuffer()
255: */
256: public void resetBuffer() {
257: throw new UnsupportedOperationException();
258: }
259:
260: /*
261: * @see javax.servlet.ServletResponse#isCommitted()
262: */
263: public boolean isCommitted() {
264: throw new UnsupportedOperationException();
265: }
266:
267: /*
268: * @see javax.servlet.ServletResponse#reset()
269: */
270: public void reset() {
271: throw new UnsupportedOperationException();
272: }
273: }
|