KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > rice > rubis > client > URLGeneratorPHP


1 /*
2  * RUBiS
3  * Copyright (C) 2002, 2003, 2004 French National Institute For Research In Computer
4  * Science And Control (INRIA).
5  * Contact: jmob@objectweb.org
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or any later
10  * version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20  *
21  * Initial developer(s): Emmanuel Cecchet, Julie Marguerite
22  * Contributor(s):
23  */

24  package edu.rice.rubis.client;
25
26 /**
27  * This class provides the needed URLs to access all features of RUBiS (PHP version).
28  * You must provide the name and port of the Web site running RUBiS as well
29  * as the directories where the scripts and HTML files reside. For example:
30  * <pre>
31  * URLGenerator rubisWeb = new URLGeneratorEJB("www.testbed.cs.rice.edu", 80, "/PHP", "/PHP");
32  * </pre>
33  * @author <a HREF="mailto:cecchet@rice.edu">Emmanuel Cecchet</a> and <a HREF="mailto:julie.marguerite@inrialpes.fr">Julie Marguerite</a>
34  * @version 1.0
35  */

36
37 public class URLGeneratorPHP extends URLGenerator
38 {
39
40   /**
41    * Set the name and port of the Web site running RUBiS as well as the
42    * directories where the HTML and PHP scripts reside. Examples:
43    * <pre>
44    * URLGenerator rubisWeb = new URLGenerator("www.testbed.cs.rice.edu", 80, "/PHP", "/PHP");
45    * </pre>
46    *
47    * @param host Web site address
48    * @param port HTTP server port
49    * @param HTMLFilesPath path where HTML files reside
50    * @param ScriptFilesPath path to the script files
51    */

52   public URLGeneratorPHP(String JavaDoc host, int port, String JavaDoc HTMLFilesPath, String JavaDoc ScriptFilesPath)
53   {
54     super(host, port, HTMLFilesPath, ScriptFilesPath);
55   }
56
57
58   /**
59    * Returns the name of the About Me script.
60    *
61    * @return About Me script name
62    */

63   public String JavaDoc AboutMeScript()
64   {
65     return "AboutMe.php";
66   }
67  
68
69   /**
70    * Returns the name of the Browse Categories script.
71    *
72    * @return Browse Categories script name
73    */

74   public String JavaDoc BrowseCategoriesScript()
75   {
76     return "BrowseCategories.php";
77   }
78
79   /**
80    * Returns the name of the Browse Regions script.
81    *
82    * @return Browse Regions script name
83    */

84   public String JavaDoc BrowseRegionsScript()
85   {
86     return "BrowseRegions.php";
87   }
88
89   /**
90    * Returns the name of the Buy Now script.
91    *
92    * @return Buy Now script name
93    */

94   public String JavaDoc BuyNowScript()
95   {
96     return "BuyNow.php";
97   }
98
99   /**
100    * Returns the name of the Buy Now Auth script.
101    *
102    * @return Buy Now Auth script name
103    */

104   public String JavaDoc BuyNowAuthScript()
105   {
106     return "BuyNowAuth.php";
107   }
108
109   /**
110    * Returns the name of the Put Bid script.
111    *
112    * @return Put Bid script name
113    */

114   public String JavaDoc PutBidScript()
115   {
116     return "PutBid.php";
117   }
118
119   /**
120    * Returns the name of the Put Bid Auth script.
121    *
122    * @return Put Bid Auth script name
123    */

124   public String JavaDoc PutBidAuthScript()
125   {
126     return "PutBidAuth.php";
127   }
128
129   /**
130    * Returns the name of the Put Comment script.
131    *
132    * @return Put Comment script name
133    */

134   public String JavaDoc PutCommentScript()
135   {
136     return "PutComment.php";
137   }
138
139   /**
140    * Returns the name of the Put Comment Auth script.
141    *
142    * @return Put Comment Auth script name
143    */

144   public String JavaDoc PutCommentAuthScript()
145   {
146     return "PutCommentAuth.php";
147   }
148
149   /**
150    * Returns the name of the Register Item script.
151    *
152    * @return Register Item script name
153    */

154   public String JavaDoc RegisterItemScript()
155   {
156     return "RegisterItem.php";
157   }
158
159   /**
160    * Returns the name of the Register User script.
161    *
162    * @return Register User script name
163    */

164   public String JavaDoc RegisterUserScript()
165   {
166     return "RegisterUser.php";
167   }
168
169   /**
170    * Returns the name of the Search Items By Category script.
171    *
172    * @return Search Items By Category script name
173    */

174   public String JavaDoc SearchItemsByCategoryScript()
175   {
176     return "SearchItemsByCategory.php";
177   }
178
179   /**
180    * Returns the name of the Search Items By Region script.
181    *
182    * @return Search Items By Region script name
183    */

184   public String JavaDoc SearchItemsByRegionScript()
185   {
186     return "SearchItemsByRegion.php";
187   }
188
189   /**
190    * Returns the name of the Sell Item Form script.
191    *
192    * @return Sell Item Form script name
193    */

194   public String JavaDoc SellItemFormScript()
195   {
196     return "SellItemForm.php";
197   }
198
199   /**
200    * Returns the name of the Store Bid script.
201    *
202    * @return Store Bid script name
203    */

204   public String JavaDoc StoreBidScript()
205   {
206     return "StoreBid.php";
207   }
208
209   /**
210    * Returns the name of the Store Buy Now script.
211    *
212    * @return Store Buy Now script name
213    */

214   public String JavaDoc StoreBuyNowScript()
215   {
216     return "StoreBuyNow.php";
217   }
218
219   /**
220    * Returns the name of the Store Comment script.
221    *
222    * @return Store Comment script name
223    */

224   public String JavaDoc StoreCommentScript()
225   {
226     return "StoreComment.php";
227   }
228
229   /**
230    * Returns the name of the View Bid History script.
231    *
232    * @return View Bid History script name
233    */

234   public String JavaDoc ViewBidHistoryScript()
235   {
236     return "ViewBidHistory.php";
237   }
238
239   /**
240    * Returns the name of the View Item script.
241    *
242    * @return View Item script name
243    */

244   public String JavaDoc ViewItemScript()
245   {
246     return "ViewItem.php";
247   }
248
249   /**
250    * Returns the name of the View User Info script.
251    *
252    * @return View User Info script name
253    */

254   public String JavaDoc ViewUserInfoScript()
255   {
256     return "ViewUserInfo.php";
257   }
258 }
259
Popular Tags