Source code: raining/core/Request.java
1 /*
2 * $Author: rahul_kumar $
3 * $Id: Request.java,v 1.2 2003/10/18 11:21:00 rahul_kumar Exp rahul $
4 */
5
6 package raining.core;
7 import java.nio.channels.*;
8
9 /**
10 * Interface for Requests. The server uses this to retrieve operations,
11 * and urls/paths from a request.
12 */
13
14 public interface Request {
15
16 public String getOperation();
17 public String getURL();
18 public SocketChannel getChannel();
19 public void setChannel(SocketChannel sc);
20 public void setURL(String url);
21 public String toString();
22 /** get a header fields value.
23 * RK added on 20031206 00:43:36 to get if-modified-since like
24 * headers.
25 */
26 public String findValue(String key);
27
28
29 } // end of class
30
31
32