1 15 package org.apache.tapestry.web; 16 17 import java.io.IOException ; 18 import java.io.OutputStream ; 19 import java.io.PrintWriter ; 20 21 import org.apache.tapestry.util.ContentType; 22 23 30 public interface WebResponse 31 { 32 38 39 public OutputStream getOutputStream(ContentType contentType) throws IOException ; 40 41 46 47 public PrintWriter getPrintWriter(ContentType contentType) throws IOException ; 48 49 54 55 public String encodeURL(String url); 56 57 61 62 public void reset(); 63 64 public void setContentLength(int contentLength); 65 66 71 72 public String getNamespace(); 73 74 82 public void setDateHeader(String string, long date); 83 84 87 public void setStatus(int status); 88 } | Popular Tags |