01: /*
02: * Copyright 2003-2006 Rick Knowles <winstone-devel at lists sourceforge net>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: */
07: package javax.servlet;
08:
09: import java.util.Locale;
10: import java.io.IOException;
11: import java.io.PrintWriter;
12:
13: /**
14: * Base response interface definition.
15: *
16: * @author <a href="mailto:rick_knowles@hotmail.com">Rick Knowles</a>
17: */
18: public interface ServletResponse {
19: public void flushBuffer() throws IOException;
20:
21: public int getBufferSize();
22:
23: public void reset();
24:
25: public void resetBuffer();
26:
27: public void setBufferSize(int size);
28:
29: public boolean isCommitted();
30:
31: public String getCharacterEncoding();
32:
33: public void setCharacterEncoding(String charset);
34:
35: public String getContentType();
36:
37: public void setContentType(String type);
38:
39: public void setContentLength(int len);
40:
41: public Locale getLocale();
42:
43: public void setLocale(Locale loc);
44:
45: public ServletOutputStream getOutputStream() throws IOException;
46:
47: public PrintWriter getWriter() throws IOException;
48: }
|