1 4 package org.apache.catalina.connector; 5 6 import com.terracotta.session.SessionResponse; 7 8 import java.io.IOException ; 9 import java.io.PrintWriter ; 10 import java.util.Locale ; 11 12 import javax.servlet.ServletOutputStream ; 13 import javax.servlet.http.Cookie ; 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 public String encodeRedirectUrl(String url) { 29 return sessRes.encodeRedirectUrl(url); 30 } 31 32 public String encodeRedirectURL(String url) { 33 return sessRes.encodeRedirectUrl(url); 34 } 35 36 public String encodeUrl(String url) { 37 return sessRes.encodeUrl(url); 38 } 39 40 public String encodeURL(String url) { 41 return sessRes.encodeURL(url); 42 } 43 44 47 public void addCookie(Cookie arg0) { 48 valveRes.addCookie(arg0); 49 } 50 51 public void addDateHeader(String arg0, long arg1) { 52 valveRes.addDateHeader(arg0, arg1); 53 } 54 55 public void addHeader(String arg0, String arg1) { 56 valveRes.addHeader(arg0, arg1); 57 } 58 59 public void addIntHeader(String arg0, int arg1) { 60 valveRes.addIntHeader(arg0, arg1); 61 } 62 63 public boolean containsHeader(String arg0) { 64 return valveRes.containsHeader(arg0); 65 } 66 67 public boolean equals(Object arg0) { 68 return valveRes.equals(arg0); 69 } 70 71 public void flushBuffer() throws IOException { 72 valveRes.flushBuffer(); 73 } 74 75 public int getBufferSize() { 76 return valveRes.getBufferSize(); 77 } 78 79 public String getCharacterEncoding() { 80 return valveRes.getCharacterEncoding(); 81 } 82 83 public String getContentType() { 84 return valveRes.getContentType(); 85 } 86 87 public Locale getLocale() { 88 return valveRes.getLocale(); 89 } 90 91 public ServletOutputStream getOutputStream() throws IOException { 92 return valveRes.getOutputStream(); 93 } 94 95 public PrintWriter getWriter() throws IOException { 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 arg1) throws IOException { 116 valveRes.sendError(arg0, arg1); 117 } 118 119 public void sendError(int arg0) throws IOException { 120 valveRes.sendError(arg0); 121 } 122 123 public void sendRedirect(String arg0) throws IOException { 124 valveRes.sendRedirect(arg0); 125 } 126 127 public void setBufferSize(int arg0) { 128 valveRes.setBufferSize(arg0); 129 } 130 131 public void setCharacterEncoding(String arg0) { 132 valveRes.setCharacterEncoding(arg0); 133 } 134 135 public void setContentLength(int arg0) { 136 valveRes.setContentLength(arg0); 137 } 138 139 public void setContentType(String arg0) { 140 valveRes.setContentType(arg0); 141 } 142 143 public void setDateHeader(String arg0, long arg1) { 144 valveRes.setDateHeader(arg0, arg1); 145 } 146 147 public void setHeader(String arg0, String arg1) { 148 valveRes.setHeader(arg0, arg1); 149 } 150 151 public void setIntHeader(String arg0, int arg1) { 152 valveRes.setIntHeader(arg0, arg1); 153 } 154 155 public void setLocale(Locale arg0) { 156 valveRes.setLocale(arg0); 157 } 158 159 public void setStatus(int arg0, String arg1) { 160 valveRes.setStatus(arg0, arg1); 161 } 162 163 public void setStatus(int arg0) { 164 valveRes.setStatus(arg0); 165 } 166 167 public String toString() { 168 return valveRes.toString(); 169 } 170 171 public ServletOutputStream createOutputStream() throws IOException { 172 return valveRes.createOutputStream(); 173 } 174 175 public void finishResponse() throws IOException { 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 [] getCookies() { 196 return valveRes.getCookies(); 197 } 198 199 public String getHeader(String name) { 200 return valveRes.getHeader(name); 201 } 202 203 public String [] getHeaderNames() { 204 return valveRes.getHeaderNames(); 205 } 206 207 public String [] getHeaderValues(String name) { 208 return valveRes.getHeaderValues(name); 209 } 210 211 public boolean getIncluded() { 212 return valveRes.getIncluded(); 213 } 214 215 public String getInfo() { 216 return valveRes.getInfo(); 217 } 218 219 public String getMessage() { 220 return valveRes.getMessage(); 221 } 222 223 public PrintWriter getReporter() throws IOException { 224 return valveRes.getReporter(); 225 } 226 227 public Request getRequest() { 228 return this.sessReq; 229 } 230 231 public javax.servlet.http.HttpServletResponse getResponse() { 232 return this.sessRes; 233 } 234 235 public int getStatus() { 236 return valveRes.getStatus(); 237 } 238 239 public java.io.OutputStream getStream() { 240 return valveRes.getStream(); 241 } 242 243 public boolean isAppCommitted() { 244 return valveRes.isAppCommitted(); 245 } 246 247 protected boolean isEncodeable(String 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 message) { 264 valveRes.reset(status, message); 265 } 266 267 public void sendAcknowledgement() throws IOException { 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 outputstream) { 296 valveRes.setStream(outputstream); 297 } 298 299 public void setSuspended(boolean suspended) { 300 valveRes.setSuspended(suspended); 301 } 302 303 } 304 | Popular Tags |