KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > connector > SessionResponse55


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package org.apache.catalina.connector;
5
6 import com.terracotta.session.SessionResponse;
7
8 import java.io.IOException JavaDoc;
9 import java.io.PrintWriter JavaDoc;
10 import java.util.Locale JavaDoc;
11
12 import javax.servlet.ServletOutputStream JavaDoc;
13 import javax.servlet.http.Cookie JavaDoc;
14
15 public class SessionResponse55 extends Response {
16   private final Response valveRes;
17   private final SessionRequest55 sessReq;
18   private final SessionResponse sessRes;
19
20   public SessionResponse55(Response valveRes, SessionRequest55 sessReq, SessionResponse sessRes) {
21     this.valveRes = valveRes;
22     this.sessRes = sessRes;
23     this.sessReq = sessReq;
24   }
25
26   // //////////////////////////////////////////
27
// url encoding methods -- START
28
public String JavaDoc encodeRedirectUrl(String JavaDoc url) {
29     return sessRes.encodeRedirectUrl(url);
30   }
31
32   public String JavaDoc encodeRedirectURL(String JavaDoc url) {
33     return sessRes.encodeRedirectUrl(url);
34   }
35
36   public String JavaDoc encodeUrl(String JavaDoc url) {
37     return sessRes.encodeUrl(url);
38   }
39
40   public String JavaDoc encodeURL(String JavaDoc url) {
41     return sessRes.encodeURL(url);
42   }
43
44   // url encoding methods -- STOP
45
// //////////////////////////////////////////
46

47   public void addCookie(Cookie JavaDoc arg0) {
48     valveRes.addCookie(arg0);
49   }
50
51   public void addDateHeader(String JavaDoc arg0, long arg1) {
52     valveRes.addDateHeader(arg0, arg1);
53   }
54
55   public void addHeader(String JavaDoc arg0, String JavaDoc arg1) {
56     valveRes.addHeader(arg0, arg1);
57   }
58
59   public void addIntHeader(String JavaDoc arg0, int arg1) {
60     valveRes.addIntHeader(arg0, arg1);
61   }
62
63   public boolean containsHeader(String JavaDoc arg0) {
64     return valveRes.containsHeader(arg0);
65   }
66
67   public boolean equals(Object JavaDoc arg0) {
68     return valveRes.equals(arg0);
69   }
70
71   public void flushBuffer() throws IOException JavaDoc {
72     valveRes.flushBuffer();
73   }
74
75   public int getBufferSize() {
76     return valveRes.getBufferSize();
77   }
78
79   public String JavaDoc getCharacterEncoding() {
80     return valveRes.getCharacterEncoding();
81   }
82
83   public String JavaDoc getContentType() {
84     return valveRes.getContentType();
85   }
86
87   public Locale JavaDoc getLocale() {
88     return valveRes.getLocale();
89   }
90
91   public ServletOutputStream JavaDoc getOutputStream() throws IOException JavaDoc {
92     return valveRes.getOutputStream();
93   }
94
95   public PrintWriter JavaDoc getWriter() throws IOException JavaDoc {
96     return valveRes.getWriter();
97   }
98
99   public int hashCode() {
100     return valveRes.hashCode();
101   }
102
103   public boolean isCommitted() {
104     return valveRes.isCommitted();
105   }
106
107   public void reset() {
108     valveRes.reset();
109   }
110
111   public void resetBuffer() {
112     valveRes.resetBuffer();
113   }
114
115   public void sendError(int arg0, String JavaDoc arg1) throws IOException JavaDoc {
116     valveRes.sendError(arg0, arg1);
117   }
118
119   public void sendError(int arg0) throws IOException JavaDoc {
120     valveRes.sendError(arg0);
121   }
122
123   public void sendRedirect(String JavaDoc arg0) throws IOException JavaDoc {
124     valveRes.sendRedirect(arg0);
125   }
126
127   public void setBufferSize(int arg0) {
128     valveRes.setBufferSize(arg0);
129   }
130
131   public void setCharacterEncoding(String JavaDoc arg0) {
132     valveRes.setCharacterEncoding(arg0);
133   }
134
135   public void setContentLength(int arg0) {
136     valveRes.setContentLength(arg0);
137   }
138
139   public void setContentType(String JavaDoc arg0) {
140     valveRes.setContentType(arg0);
141   }
142
143   public void setDateHeader(String JavaDoc arg0, long arg1) {
144     valveRes.setDateHeader(arg0, arg1);
145   }
146
147   public void setHeader(String JavaDoc arg0, String JavaDoc arg1) {
148     valveRes.setHeader(arg0, arg1);
149   }
150
151   public void setIntHeader(String JavaDoc arg0, int arg1) {
152     valveRes.setIntHeader(arg0, arg1);
153   }
154
155   public void setLocale(Locale JavaDoc arg0) {
156     valveRes.setLocale(arg0);
157   }
158
159   public void setStatus(int arg0, String JavaDoc arg1) {
160     valveRes.setStatus(arg0, arg1);
161   }
162
163   public void setStatus(int arg0) {
164     valveRes.setStatus(arg0);
165   }
166
167   public String JavaDoc toString() {
168     return valveRes.toString();
169   }
170
171   public ServletOutputStream JavaDoc createOutputStream() throws IOException JavaDoc {
172     return valveRes.createOutputStream();
173   }
174
175   public void finishResponse() throws IOException JavaDoc {
176     valveRes.finishResponse();
177   }
178
179   public Connector getConnector() {
180     return valveRes.getConnector();
181   }
182
183   public int getContentCount() {
184     return valveRes.getContentCount();
185   }
186
187   public int getContentLength() {
188     return valveRes.getContentLength();
189   }
190
191   public org.apache.catalina.Context getContext() {
192     return valveRes.getContext();
193   }
194
195   public Cookie JavaDoc[] getCookies() {
196     return valveRes.getCookies();
197   }
198
199   public String JavaDoc getHeader(String JavaDoc name) {
200     return valveRes.getHeader(name);
201   }
202
203   public String JavaDoc[] getHeaderNames() {
204     return valveRes.getHeaderNames();
205   }
206
207   public String JavaDoc[] getHeaderValues(String JavaDoc name) {
208     return valveRes.getHeaderValues(name);
209   }
210
211   public boolean getIncluded() {
212     return valveRes.getIncluded();
213   }
214
215   public String JavaDoc getInfo() {
216     return valveRes.getInfo();
217   }
218
219   public String JavaDoc getMessage() {
220     return valveRes.getMessage();
221   }
222
223   public PrintWriter JavaDoc getReporter() throws IOException JavaDoc {
224     return valveRes.getReporter();
225   }
226
227   public Request getRequest() {
228     return this.sessReq;
229   }
230
231   public javax.servlet.http.HttpServletResponse JavaDoc getResponse() {
232     return this.sessRes;
233   }
234
235   public int getStatus() {
236     return valveRes.getStatus();
237   }
238
239   public java.io.OutputStream JavaDoc getStream() {
240     return valveRes.getStream();
241   }
242
243   public boolean isAppCommitted() {
244     return valveRes.isAppCommitted();
245   }
246
247   protected boolean isEncodeable(String JavaDoc location) {
248     return valveRes.isEncodeable(location);
249   }
250
251   public boolean isError() {
252     return valveRes.isError();
253   }
254
255   public boolean isSuspended() {
256     return valveRes.isSuspended();
257   }
258
259   public void recycle() {
260     valveRes.recycle();
261   }
262
263   public void reset(int status, String JavaDoc message) {
264     valveRes.reset(status, message);
265   }
266
267   public void sendAcknowledgement() throws IOException JavaDoc {
268     valveRes.sendAcknowledgement();
269   }
270
271   public void setAppCommitted(boolean appCommitted) {
272     valveRes.setAppCommitted(appCommitted);
273   }
274
275   public void setConnector(Connector connector) {
276     valveRes.setConnector(connector);
277   }
278
279   public void setContext(org.apache.catalina.Context context) {
280     valveRes.setContext(context);
281   }
282
283   public void setError() {
284     valveRes.setError();
285   }
286
287   public void setIncluded(boolean included) {
288     valveRes.setIncluded(included);
289   }
290
291   public void setRequest(Request request) {
292     valveRes.setRequest(request);
293   }
294
295   public void setStream(java.io.OutputStream JavaDoc outputstream) {
296     valveRes.setStream(outputstream);
297   }
298
299   public void setSuspended(boolean suspended) {
300     valveRes.setSuspended(suspended);
301   }
302
303 }
304
Popular Tags