1 17 package javax.servlet; 18 19 import java.io.IOException ; 20 import java.io.PrintWriter ; 21 import java.util.Locale ; 22 23 24 60 61 public interface ServletResponse { 62 63 64 65 85 86 public String getCharacterEncoding(); 87 88 89 90 110 111 public String getContentType(); 112 113 114 115 135 136 public ServletOutputStream getOutputStream() throws IOException ; 137 138 139 140 175 176 public PrintWriter getWriter() throws IOException ; 177 178 179 180 181 217 218 public void setCharacterEncoding(String charset); 219 220 221 222 223 233 234 public void setContentLength(int len); 235 236 237 238 266 267 public void setContentType(String type); 268 269 270 298 299 public void setBufferSize(int size); 300 301 302 303 315 316 public int getBufferSize(); 317 318 319 320 331 332 public void flushBuffer() throws IOException ; 333 334 335 336 349 350 public void resetBuffer(); 351 352 353 367 368 public boolean isCommitted(); 369 370 371 372 386 387 public void reset(); 388 389 390 391 428 429 public void setLocale(Locale loc); 430 431 432 433 443 444 public Locale getLocale(); 445 446 447 448 } 449 450 451 452 453 454 | Popular Tags |