KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > matuschek > http > ExtendedURL


1 package net.matuschek.http;
2
3 /*********************************************
4     Copyright (c) 2001 by Daniel Matuschek
5 *********************************************/

6                                          
7 import java.net.URL JavaDoc;
8
9 /**
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 JavaDoc url = null;
19   private int requestMethod = HttpConstants.GET;
20   private String JavaDoc params = "";
21
22
23   /**
24    * Simple constructoir, does nothing special
25    */

26   public ExtendedURL() {
27   }
28
29   public URL JavaDoc getURL() {
30     return this.url;
31   }
32
33   public void setURL(URL JavaDoc url) {
34     this.url = url;
35   }
36
37
38   public int getRequestMethod() {
39     return this.requestMethod;
40   }
41
42   public void setRequestMethod(int requestMethod) {
43     this.requestMethod = requestMethod;
44   }
45
46   public String JavaDoc getParams() {
47     return this.params;
48   }
49
50
51   public void setParams(String JavaDoc params) {
52     this.params = params;
53   }
54
55   
56   
57 }
58
Popular Tags