]>
Commit | Line | Data |
---|---|---|
1 | package dolda.jsvc; | |
2 | ||
3 | import java.io.*; | |
4 | import java.net.URL; | |
5 | import java.net.SocketAddress; | |
6 | import java.util.Map; | |
7 | ||
8 | public interface Request { | |
9 | /* Input */ | |
10 | public URL url(); | |
11 | public URL rooturl(); | |
12 | public String method(); | |
13 | public String path(); | |
14 | public InputStream input(); | |
15 | public MultiMap<String, String> inheaders(); | |
16 | public MultiMap<String, String> params(); | |
17 | ||
18 | /* Output */ | |
19 | public OutputStream output(); | |
20 | public void status(int code); | |
21 | public void status(int code, String message); | |
22 | public MultiMap<String, String> outheaders(); | |
23 | ||
24 | /* Misc. */ | |
25 | public ServerContext ctx(); | |
26 | public SocketAddress remoteaddr(); | |
27 | public SocketAddress localaddr(); | |
28 | } |