KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > HTTPClient > RoRequest


1 /*
2  * @(#)RoRequest.java 0.3-2 18/06/1999
3  *
4  * This file is part of the HTTPClient package
5  * Copyright (C) 1996-1999 Ronald Tschalär
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free
19  * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20  * MA 02111-1307, USA
21  *
22  * For questions, suggestions, bug-reports, enhancement-requests etc.
23  * I may be contacted at:
24  *
25  * ronald@innovation.ch
26  *
27  */

28
29 package HTTPClient;
30
31
32 /**
33  * This interface represents the read-only interface of an http request.
34  * It is the compile-time type passed to various handlers which might
35  * need the request info but musn't modify the request.
36  *
37  * @version 0.3-2 18/06/1999
38  * @author Ronald Tschalär
39  */

40
41 public interface RoRequest
42 {
43     /**
44      * @return the HTTPConnection this request is associated with
45      */

46     public HTTPConnection getConnection();
47
48     /**
49      * @return the request method
50      */

51     public String JavaDoc getMethod();
52
53     /**
54      * @return the request-uri
55      */

56     public String JavaDoc getRequestURI();
57
58     /**
59      * @return the headers making up this request
60      */

61     public NVPair[] getHeaders();
62
63     /**
64      * @return the body of this request
65      */

66     public byte[] getData();
67
68     /**
69      * @return the output stream on which the body is written
70      */

71     public HttpOutputStream getStream();
72
73     /**
74      * @return true if the modules or handlers for this request may popup
75      * windows or otherwise interact with the user
76      */

77     public boolean allowUI();
78 }
79
80
Popular Tags