1 48 49 50 package com.caucho.portal.generic.context; 51 52 import java.io.IOException ; 53 import java.io.OutputStream ; 54 import java.io.PrintWriter ; 55 import java.io.UnsupportedEncodingException ; 56 import java.util.Locale ; 57 58 public interface ResponseHandler 59 { 60 63 public ResponseHandler getSuccessor(); 64 65 73 public void setProperty(String name, String value); 74 75 83 public void addProperty(String name, String value); 84 85 86 public void setContentType(String contentType); 87 88 92 public String getContentType(); 93 94 public void setLocale(Locale locale); 95 96 public Locale getLocale(); 97 98 public void setBufferSize(int size); 99 100 public int getBufferSize(); 101 102 107 public void flushBuffer() 108 throws IOException ; 109 110 115 public void resetBuffer(); 116 117 122 public void reset(); 123 124 public boolean isCommitted(); 125 126 129 public void setCharacterEncoding(String enc) 130 throws UnsupportedEncodingException ; 131 132 135 public String getCharacterEncoding(); 136 137 140 public PrintWriter getWriter() 141 throws IOException ; 142 143 public OutputStream getOutputStream() 144 throws IOException ; 145 146 public void finish() 147 throws IOException ; 148 149 } 150 | Popular Tags |