KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > context > servlet > ServletResponseMockImpl


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.context.servlet;
17
18 import javax.servlet.ServletOutputStream JavaDoc;
19 import javax.servlet.http.Cookie JavaDoc;
20 import javax.servlet.http.HttpServletResponse JavaDoc;
21 import java.io.IOException JavaDoc;
22 import java.io.PrintWriter JavaDoc;
23 import java.util.Locale JavaDoc;
24
25 /**
26  * DOCUMENT ME!
27  * @author Manfred Geiler (latest modification by $Author: matze $)
28  * @version $Revision: 1.3 $ $Date: 2004/10/13 11:50:59 $
29  */

30 public class ServletResponseMockImpl
31     implements HttpServletResponse JavaDoc
32 {
33     private Locale JavaDoc _locale = Locale.getDefault();
34
35     public void addCookie(Cookie JavaDoc cookie)
36     {
37         throw new UnsupportedOperationException JavaDoc();
38     }
39
40     public boolean containsHeader(String JavaDoc name)
41     {
42         throw new UnsupportedOperationException JavaDoc();
43     }
44
45     public String JavaDoc encodeURL(String JavaDoc name)
46     {
47         throw new UnsupportedOperationException JavaDoc();
48     }
49
50     public String JavaDoc encodeRedirectURL(String JavaDoc name)
51     {
52         throw new UnsupportedOperationException JavaDoc();
53     }
54
55     public String JavaDoc encodeUrl(String JavaDoc name)
56     {
57         throw new UnsupportedOperationException JavaDoc();
58     }
59
60     public String JavaDoc encodeRedirectUrl(String JavaDoc name)
61     {
62         throw new UnsupportedOperationException JavaDoc();
63     }
64
65     public void sendError(int i, String JavaDoc name) throws IOException JavaDoc
66     {
67         throw new UnsupportedOperationException JavaDoc();
68     }
69
70     public void sendError(int i) throws IOException JavaDoc
71     {
72         throw new UnsupportedOperationException JavaDoc();
73     }
74
75     public void sendRedirect(String JavaDoc name) throws IOException JavaDoc
76     {
77         throw new UnsupportedOperationException JavaDoc();
78     }
79
80     public void setDateHeader(String JavaDoc name, long l)
81     {
82         throw new UnsupportedOperationException JavaDoc();
83     }
84
85     public void addDateHeader(String JavaDoc name, long l)
86     {
87         throw new UnsupportedOperationException JavaDoc();
88     }
89
90     public void setHeader(String JavaDoc name, String JavaDoc name1)
91     {
92         throw new UnsupportedOperationException JavaDoc();
93     }
94
95     public void addHeader(String JavaDoc name, String JavaDoc name1)
96     {
97         throw new UnsupportedOperationException JavaDoc();
98     }
99
100     public void setIntHeader(String JavaDoc name, int i)
101     {
102         throw new UnsupportedOperationException JavaDoc();
103     }
104
105     public void addIntHeader(String JavaDoc name, int i)
106     {
107         throw new UnsupportedOperationException JavaDoc();
108     }
109
110     public void setStatus(int i)
111     {
112         throw new UnsupportedOperationException JavaDoc();
113     }
114
115     public void setStatus(int i, String JavaDoc name)
116     {
117         throw new UnsupportedOperationException JavaDoc();
118     }
119
120     public String JavaDoc getCharacterEncoding()
121     {
122         throw new UnsupportedOperationException JavaDoc();
123     }
124
125     public ServletOutputStream JavaDoc getOutputStream() throws IOException JavaDoc
126     {
127         throw new UnsupportedOperationException JavaDoc();
128     }
129
130     public PrintWriter JavaDoc getWriter() throws IOException JavaDoc
131     {
132         throw new UnsupportedOperationException JavaDoc();
133     }
134
135     public void setContentLength(int i)
136     {
137         throw new UnsupportedOperationException JavaDoc();
138     }
139
140     public void setContentType(String JavaDoc name)
141     {
142         throw new UnsupportedOperationException JavaDoc();
143     }
144
145     public void setBufferSize(int i)
146     {
147         throw new UnsupportedOperationException JavaDoc();
148     }
149
150     public int getBufferSize()
151     {
152         throw new UnsupportedOperationException JavaDoc();
153     }
154
155     public void flushBuffer() throws IOException JavaDoc
156     {
157         throw new UnsupportedOperationException JavaDoc();
158     }
159
160     public void resetBuffer()
161     {
162         throw new UnsupportedOperationException JavaDoc();
163     }
164
165     public boolean isCommitted()
166     {
167         throw new UnsupportedOperationException JavaDoc();
168     }
169
170     public void reset()
171     {
172         throw new UnsupportedOperationException JavaDoc();
173     }
174
175     public Locale JavaDoc getLocale()
176     {
177         return _locale;
178     }
179
180     public void setLocale(Locale JavaDoc locale)
181     {
182         _locale = locale;
183     }
184
185     public String JavaDoc getContentType()
186     {
187         throw new UnsupportedOperationException JavaDoc();
188     }
189
190     public void setCharacterEncoding(String JavaDoc s)
191     {
192         throw new UnsupportedOperationException JavaDoc();
193     }
194 }
195
Popular Tags