1 2 3 27 28 29 package org.apache.catalina; 30 31 32 import java.io.IOException ; 33 import java.io.OutputStream ; 34 import java.io.PrintWriter ; 35 import javax.servlet.ServletException ; 36 import javax.servlet.ServletOutputStream ; 37 import javax.servlet.ServletResponse ; 38 39 40 48 49 public interface Response { 50 51 52 54 55 58 public Connector getConnector(); 59 60 61 66 public void setConnector(Connector connector); 67 68 69 72 public int getContentCount(); 73 74 75 78 public Context getContext(); 79 80 81 87 public void setContext(Context context); 88 89 90 95 public void setAppCommitted(boolean appCommitted); 96 97 98 101 public boolean isAppCommitted(); 102 103 104 107 public boolean getIncluded(); 108 109 110 116 public void setIncluded(boolean included); 117 118 119 124 public String getInfo(); 125 126 127 130 public Request getRequest(); 131 132 133 138 public void setRequest(Request request); 139 140 141 145 public ServletResponse getResponse(); 146 147 148 151 public OutputStream getStream(); 152 153 154 159 public void setStream(OutputStream stream); 160 161 162 167 public void setSuspended(boolean suspended); 168 169 170 173 public boolean isSuspended(); 174 175 176 179 public void setError(); 180 181 182 185 public boolean isError(); 186 187 188 194 public void setDetailMessage(String message); 195 196 197 202 public String getDetailMessage(); 203 205 206 208 209 215 public ServletOutputStream createOutputStream() throws IOException ; 216 217 218 224 public void finishResponse() throws IOException ; 225 226 227 230 public int getContentLength(); 231 232 233 237 public String getContentType(); 238 239 240 252 public PrintWriter getReporter() throws IOException ; 253 254 255 259 public void recycle(); 260 261 262 265 public void resetBuffer(); 266 267 268 273 public void sendAcknowledgement() 274 throws IOException ; 275 276 277 } 278 | Popular Tags |