diff options
author | gareth | 2007-03-28 21:06:46 +0000 |
---|---|---|
committer | gareth | 2007-03-28 21:06:46 +0000 |
commit | 1182375b8f0d73bd827f1e19ce90a6f59956fae2 (patch) | |
tree | 2db4dc876d99afc6b12ee9a21191114bb75e8eee /OpenGridServices.GridServer/GridHttp.cs | |
parent | Fixed name quotes bug (diff) | |
download | opensim-SC_OLD-1182375b8f0d73bd827f1e19ce90a6f59956fae2.zip opensim-SC_OLD-1182375b8f0d73bd827f1e19ce90a6f59956fae2.tar.gz opensim-SC_OLD-1182375b8f0d73bd827f1e19ce90a6f59956fae2.tar.bz2 opensim-SC_OLD-1182375b8f0d73bd827f1e19ce90a6f59956fae2.tar.xz |
Added more infrastructure for OGS
Diffstat (limited to 'OpenGridServices.GridServer/GridHttp.cs')
-rw-r--r-- | OpenGridServices.GridServer/GridHttp.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenGridServices.GridServer/GridHttp.cs b/OpenGridServices.GridServer/GridHttp.cs index 758d761..c9cda61 100644 --- a/OpenGridServices.GridServer/GridHttp.cs +++ b/OpenGridServices.GridServer/GridHttp.cs | |||
@@ -116,7 +116,22 @@ namespace OpenGridServices.GridServer | |||
116 | } | 116 | } |
117 | 117 | ||
118 | static string ParseREST(string requestBody, string requestURL) { | 118 | static string ParseREST(string requestBody, string requestURL) { |
119 | char[] splitter = {'/'}; | ||
120 | string[] rest_params = requestURL.Split(splitter); | ||
121 | string req_type = rest_params[1]; // First part of the URL is the type of request - | ||
122 | switch(req_type) { | ||
123 | case "regions": | ||
124 | ulong regionhandle = (ulong)Convert.ToInt64(rest_params[2]); // get usersessions/sessionid | ||
125 | switch(rest_params[3]) { | ||
126 | case "neighbours": | ||
127 | return OpenGrid_Main.thegrid._regionmanager.GetXMLNeighbours(regionhandle); | ||
128 | break; | ||
129 | } | ||
130 | return "OK"; | ||
131 | break; | ||
132 | } | ||
119 | return ""; | 133 | return ""; |
134 | |||
120 | } | 135 | } |
121 | 136 | ||
122 | 137 | ||