01: package com.icesoft.faces.webapp.http.common;
02:
03: import java.io.IOException;
04: import java.io.InputStream;
05: import java.io.OutputStream;
06: import java.util.Date;
07:
08: public interface Response {
09:
10: void setStatus(int code);
11:
12: void setHeader(String name, String value);
13:
14: void setHeader(String name, String[] values);
15:
16: void setHeader(String name, Date value);
17:
18: void setHeader(String name, int value);
19:
20: void setHeader(String name, long value);
21:
22: OutputStream writeBody() throws IOException;
23:
24: void writeBodyFrom(InputStream in) throws IOException;
25: }
|