KickJava   Java API By Example, From Geeks To Geeks.

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


1 package edu.rice.rubbos.client;
2
3 /**
4  * This class provides the needed URLs to access all features of RUBBoS (PHP version).
5  * You must provide the name and port of the Web site running RUBBoS as well
6  * as the directories where the scripts and HTML files reside. For example:
7  * <pre>
8  * URLGenerator rubbosWeb = new URLGeneratorEJB("www.testbed.cs.rice.edu", 80, "/PHP", "/PHP");
9  * </pre>
10  * @author <a HREF="mailto:cecchet@rice.edu">Emmanuel Cecchet</a> and <a HREF="mailto:julie.marguerite@inrialpes.fr">Julie Marguerite</a>
11  * @version 1.0
12  */

13
14 public class URLGeneratorPHP extends URLGenerator
15 {
16
17   /**
18    * Set the name and port of the Web site running RUBBoS as well as the
19    * directories where the HTML and PHP scripts reside. Examples:
20    * <pre>
21    * URLGenerator rubbosWeb = new URLGenerator("www.testbed.cs.rice.edu", 80, "/PHP", "/PHP");
22    * </pre>
23    *
24    * @param host Web site address
25    * @param port HTTP server port
26    * @param HTMLFilesPath path where HTML files reside
27    * @param ScriptFilesPath path to the script files
28    */

29   public URLGeneratorPHP(String JavaDoc host, int port, String JavaDoc HTMLFilesPath, String JavaDoc ScriptFilesPath)
30   {
31     super(host, port, HTMLFilesPath, ScriptFilesPath);
32   }
33
34
35   /**
36    * Returns the name of the Search script.
37    *
38    * @return Search script name
39    */

40   public String JavaDoc SearchScript()
41   {
42     return "Search.php";
43   }
44
45
46   /**
47    * Returns the name of the Browse Categories script.
48    *
49    * @return Browse Categories script name
50    */

51   public String JavaDoc BrowseCategoriesScript()
52   {
53     return "BrowseCategories.php";
54   }
55
56   /**
57    * Returns the name of the Stories of the day script.
58    *
59    * @return Stories of the day script name
60    */

61   public String JavaDoc StoriesOfTheDayScript()
62   {
63     return "StoriesOfTheDay.php";
64   }
65
66
67   /**
68    * Returns the name of the Older stories script.
69    *
70    * @return Older stories script name
71    */

72   public String JavaDoc OlderStoriesScript()
73   {
74     return "OlderStories.php";
75   }
76
77   /**
78    * Returns the name of the Submit story script.
79    *
80    * @return Submit story script name
81    */

82   public String JavaDoc SubmitStoryScript()
83   {
84     return "SubmitStory.php";
85   }
86   /**
87    * Returns the name of the Post Comment script.
88    *
89    * @return Post Comment script name
90    */

91   public String JavaDoc PostCommentScript()
92   {
93     return "PostComment.php";
94   }
95
96   /**
97    * Returns the name of the Register User script.
98    *
99    * @return Register User script name
100    */

101   public String JavaDoc RegisterUserScript()
102   {
103     return "RegisterUser.php";
104   }
105
106   /**
107    * Returns the name of the Browse stories By Category script.
108    *
109    * @return Browse stories by category By Category script name
110    */

111   public String JavaDoc BrowseStoriesByCategoryScript()
112   {
113     return "BrowseStoriesByCategory.php";
114   }
115
116   /**
117    * Returns the name of the Store Comment script.
118    *
119    * @return Store Store comment script name
120    */

121   public String JavaDoc StoreCommentScript()
122   {
123     return "StoreComment.php";
124   }
125
126   /**
127    * Returns the name of the Store Story script.
128    *
129    * @return Store Story script name
130    */

131   public String JavaDoc StoreStoryScript()
132   {
133     return "StoreStory.php";
134   }
135
136   /**
137    * Returns the name of the View Story script.
138    *
139    * @return View Story script name
140    */

141   public String JavaDoc ViewStoryScript()
142   {
143     return "ViewStory.php";
144   }
145
146   /**
147    * Returns the name of the View Comment script.
148    *
149    * @return View Comment Info script name
150    */

151   public String JavaDoc ViewCommentScript()
152   {
153     return "ViewComment.php";
154   }
155
156   /**
157    * Returns the name of the Moderate Comment script.
158    *
159    * @return Moderate Comment script name
160    */

161   public String JavaDoc ModerateCommentScript()
162   {
163     return "ModerateComment.php";
164   }
165
166   /**
167    * Returns the name of the Store Moderate Log script.
168    *
169    * @return Store Moderate Log script name
170    */

171   public String JavaDoc StoreModerateLogScript()
172   {
173     return "StoreModeratorLog.php";
174   }
175
176   /**
177    * Returns the name of the Author Tasks script.
178    *
179    * @return Author Tasks script name
180    */

181   public String JavaDoc AuthorTasksScript()
182   {
183     return "Author.php";
184   }
185
186   /**
187    * Returns the name of the Review Stories script.
188    *
189    * @return Review Stories script name
190    */

191   public String JavaDoc ReviewStoriesScript()
192   {
193     return "ReviewStories.php";
194   }
195
196   /**
197    * Returns the name of the Accept Story script.
198    *
199    * @return Accept Story script name
200    */

201   public String JavaDoc AcceptStoryScript()
202   {
203     return "AcceptStory.php";
204   }
205
206   /**
207    * Returns the name of the Accept Story script.
208    *
209    * @return Accept Story script name
210    */

211   public String JavaDoc RejectStoryScript()
212   {
213     return "RejectStory.php";
214   }
215
216 }
217
Popular Tags