01: package net.matuschek.http;
02:
03: /*********************************************
04: Copyright (c) 2001 by Daniel Matuschek
05: *********************************************/
06:
07: import java.net.URL;
08:
09: /**
10: * This class represents an URL that contains also
11: * a argument (e.g. the values for HTTP POST) and a request type (GET/POST)
12: *
13: * @author Daniel Matuschek
14: * @version $Id $
15: */
16: public class ExtendedURL {
17:
18: private URL url = null;
19: private int requestMethod = HttpConstants.GET;
20: private String params = "";
21:
22: /**
23: * Simple constructoir, does nothing special
24: */
25: public ExtendedURL() {
26: }
27:
28: public URL getURL() {
29: return this .url;
30: }
31:
32: public void setURL(URL url) {
33: this .url = url;
34: }
35:
36: public int getRequestMethod() {
37: return this .requestMethod;
38: }
39:
40: public void setRequestMethod(int requestMethod) {
41: this .requestMethod = requestMethod;
42: }
43:
44: public String getParams() {
45: return this .params;
46: }
47:
48: public void setParams(String params) {
49: this.params = params;
50: }
51:
52: }
|