aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/CAPS/AdminWebFront.cs
diff options
context:
space:
mode:
authorlbsa712007-04-11 14:14:19 +0000
committerlbsa712007-04-11 14:14:19 +0000
commit08d5d10d62df2c1c418e7a39cadb6662ea66b228 (patch)
tree19ac712ff6cc51f0563bc99767fc4331061214a8 /OpenSim.RegionServer/CAPS/AdminWebFront.cs
parentdeleted OpenSim.Terrain.BasicTerrain.dll from the bin folder, don't think the... (diff)
downloadopensim-SC_OLD-08d5d10d62df2c1c418e7a39cadb6662ea66b228.zip
opensim-SC_OLD-08d5d10d62df2c1c418e7a39cadb6662ea66b228.tar.gz
opensim-SC_OLD-08d5d10d62df2c1c418e7a39cadb6662ea66b228.tar.bz2
opensim-SC_OLD-08d5d10d62df2c1c418e7a39cadb6662ea66b228.tar.xz
* Started on converting UserHTTPServer to BaseHttpServer
* Added a 'param' param to the RestMethod * Added RestHandlerEntry to store more info about the 'rest' handler
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/CAPS/AdminWebFront.cs26
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim.RegionServer/CAPS/AdminWebFront.cs b/OpenSim.RegionServer/CAPS/AdminWebFront.cs
index d4519e8..743d1a9 100644
--- a/OpenSim.RegionServer/CAPS/AdminWebFront.cs
+++ b/OpenSim.RegionServer/CAPS/AdminWebFront.cs
@@ -48,7 +48,7 @@ namespace OpenSim.CAPS
48 server.AddRestHandler("POST", "/Admin/Login", PostLogin ); 48 server.AddRestHandler("POST", "/Admin/Login", PostLogin );
49 } 49 }
50 50
51 private string GetWelcomePage(string request, string path) 51 private string GetWelcomePage(string request, string path, string param)
52 { 52 {
53 string responseString; 53 string responseString;
54 responseString = "Welcome to the OpenSim Admin Page"; 54 responseString = "Welcome to the OpenSim Admin Page";
@@ -56,7 +56,7 @@ namespace OpenSim.CAPS
56 return responseString; 56 return responseString;
57 } 57 }
58 58
59 private string PostLogin(string requestBody, string path) 59 private string PostLogin(string requestBody, string path, string param)
60 { 60 {
61 string responseString; 61 string responseString;
62// Console.WriteLine(requestBody); 62// Console.WriteLine(requestBody);
@@ -73,7 +73,7 @@ namespace OpenSim.CAPS
73 return responseString; 73 return responseString;
74 } 74 }
75 75
76 private string PostNewAccount(string requestBody, string path) 76 private string PostNewAccount(string requestBody, string path, string param)
77 { 77 {
78 string responseString; 78 string responseString;
79 string firstName = ""; 79 string firstName = "";
@@ -122,7 +122,7 @@ namespace OpenSim.CAPS
122 return responseString; 122 return responseString;
123 } 123 }
124 124
125 private string GetConnectedClientsPage(string request, string path) 125 private string GetConnectedClientsPage(string request, string path, string param)
126 { 126 {
127 string responseString; 127 string responseString;
128 responseString = " <p> Listing connected Clients </p>"; 128 responseString = " <p> Listing connected Clients </p>";
@@ -140,7 +140,7 @@ namespace OpenSim.CAPS
140 return responseString; 140 return responseString;
141 } 141 }
142 142
143 private string AddTestScript(string request, string path) 143 private string AddTestScript(string request, string path, string param)
144 { 144 {
145 int index = path.LastIndexOf('/'); 145 int index = path.LastIndexOf('/');
146 146
@@ -159,13 +159,13 @@ namespace OpenSim.CAPS
159 return String.Format("Couldn't parse [{0}]", lluidStr ); 159 return String.Format("Couldn't parse [{0}]", lluidStr );
160 } 160 }
161 } 161 }
162 162
163 private string GetScriptsPage(string request, string path) 163 private string GetScriptsPage(string request, string path, string param)
164 { 164 {
165 return String.Empty; 165 return String.Empty;
166 } 166 }
167 167
168 private string GetEntitiesPage(string request, string path) 168 private string GetEntitiesPage(string request, string path, string param)
169 { 169 {
170 string responseString; 170 string responseString;
171 responseString = " <p> Listing current entities</p><ul>"; 171 responseString = " <p> Listing current entities</p><ul>";
@@ -179,7 +179,7 @@ namespace OpenSim.CAPS
179 return responseString; 179 return responseString;
180 } 180 }
181 181
182 private string GetClientsInventory(string request, string path) 182 private string GetClientsInventory(string request, string path, string param)
183 { 183 {
184 string[] line; 184 string[] line;
185 string delimStr = "/"; 185 string delimStr = "/";
@@ -208,12 +208,12 @@ namespace OpenSim.CAPS
208 return responseString; 208 return responseString;
209 } 209 }
210 210
211 private string GetCachedAssets(string request, string path) 211 private string GetCachedAssets(string request, string path, string param)
212 { 212 {
213 return ""; 213 return "";
214 } 214 }
215 215
216 private string GetAccountsPage(string request, string path) 216 private string GetAccountsPage(string request, string path, string param)
217 { 217 {
218 string responseString; 218 string responseString;
219 responseString = "<p> Account management </p>"; 219 responseString = "<p> Account management </p>";
@@ -223,7 +223,7 @@ namespace OpenSim.CAPS
223 return responseString; 223 return responseString;
224 } 224 }
225 225
226 private string GetAdminPage(string request, string path) 226 private string GetAdminPage(string request, string path, string param)
227 { 227 {
228 return AdminPage; 228 return AdminPage;
229 } 229 }