1 33 34 package com.icesoft.faces.webapp.parser; 35 36 import javax.servlet.ServletOutputStream ; 37 import javax.servlet.http.Cookie ; 38 import javax.servlet.http.HttpServletResponse ; 39 import java.io.IOException ; 40 import java.io.PrintWriter ; 41 import java.util.Locale ; 42 43 44 50 public class StubHttpServletResponse implements HttpServletResponse { 51 52 53 56 public void setLocale(Locale local) { 57 } 58 59 62 public Locale getLocale() { 63 throw new UnsupportedOperationException (); 64 } 65 66 69 public void setContentType(String contentType) { 70 throw new UnsupportedOperationException (); 71 } 72 73 76 public String getContentType() { 77 throw new UnsupportedOperationException (); 78 } 79 80 83 public void setCharacterEncoding(String characterEncoding) { 84 throw new UnsupportedOperationException (); 85 } 86 87 90 public String getCharacterEncoding() { 91 throw new UnsupportedOperationException (); 92 } 93 94 97 public String encodeUrl(String url) { 98 throw new UnsupportedOperationException (); 99 } 100 101 104 public String encodeURL(String url) { 105 throw new UnsupportedOperationException (); 106 } 107 108 111 public String encodeRedirectUrl(String redirectedUrl) { 112 throw new UnsupportedOperationException (); 113 } 114 115 116 119 public String encodeRedirectURL(String redirectedUrl) { 120 throw new UnsupportedOperationException (); 121 } 122 123 126 public void addCookie(Cookie arg0) { 127 throw new UnsupportedOperationException (); 128 } 129 130 133 public boolean containsHeader(String arg0) { 134 throw new UnsupportedOperationException (); 135 } 136 137 140 public void sendError(int arg0, String arg1) throws IOException { 141 throw new UnsupportedOperationException (); 142 } 143 144 147 public void sendError(int arg0) throws IOException { 148 throw new UnsupportedOperationException (); 149 } 150 151 154 public void sendRedirect(String arg0) throws IOException { 155 throw new UnsupportedOperationException (); 156 } 157 158 161 public void setDateHeader(String arg0, long arg1) { 162 throw new UnsupportedOperationException (); 163 } 164 165 168 public void addDateHeader(String arg0, long arg1) { 169 throw new UnsupportedOperationException (); 170 } 171 172 175 public void setHeader(String arg0, String arg1) { 176 throw new UnsupportedOperationException (); 177 } 178 179 182 public void addHeader(String arg0, String arg1) { 183 throw new UnsupportedOperationException (); 184 } 185 186 189 public void setIntHeader(String arg0, int arg1) { 190 throw new UnsupportedOperationException (); 191 } 192 193 196 public void addIntHeader(String arg0, int arg1) { 197 throw new UnsupportedOperationException (); 198 } 199 200 203 public void setStatus(int arg0) { 204 throw new UnsupportedOperationException (); 205 } 206 207 210 public void setStatus(int arg0, String arg1) { 211 throw new UnsupportedOperationException (); 212 } 213 214 217 public ServletOutputStream getOutputStream() throws IOException { 218 throw new UnsupportedOperationException (); 219 } 220 221 224 public PrintWriter getWriter() throws IOException { 225 throw new UnsupportedOperationException (); 226 } 227 228 231 public void setContentLength(int arg0) { 232 throw new UnsupportedOperationException (); 233 } 234 235 238 public void setBufferSize(int arg0) { 239 throw new UnsupportedOperationException (); 240 } 241 242 245 public int getBufferSize() { 246 throw new UnsupportedOperationException (); 247 } 248 249 252 public void flushBuffer() throws IOException { 253 throw new UnsupportedOperationException (); 254 } 255 256 259 public void resetBuffer() { 260 throw new UnsupportedOperationException (); 261 } 262 263 266 public boolean isCommitted() { 267 throw new UnsupportedOperationException (); 268 } 269 270 273 public void reset() { 274 throw new UnsupportedOperationException (); 275 } 276 } 277 | Popular Tags |