29 using System.Collections;
 
   32 using OpenSim.Framework;
 
   33 using OpenSim.Framework.Servers.HttpServer;
 
   34 using OpenSim.Services.Interfaces;
 
   37 namespace OpenSim.Server.Handlers.Base
 
   47         public static bool GetParams(
string path, out UUID uuid, out ulong regionHandle, out 
string action)
 
   53             path = path.Trim(
new char[] { 
'/' });
 
   54             string[] parts = path.Split(
'/');
 
   55             if (parts.Length <= 1)
 
   61                 if (!UUID.TryParse(parts[0], out uuid))
 
   64                 if (parts.Length >= 2)
 
   65                     UInt64.TryParse(parts[1], out regionHandle);
 
   66                 if (parts.Length >= 3)
 
   75             authority = string.Empty;
 
   76             authKey = string.Empty;
 
   80             string auth = httpRequest.Headers[
"authentication"];
 
   83             if ((auth != null) && (!
string.Empty.Equals(auth)) && auth != 
"None")
 
   85                 if (Uri.TryCreate(auth, UriKind.Absolute, out authUri))
 
   87                     authority = authUri.Authority;
 
   88                     authKey = authUri.PathAndQuery.Trim(
'/');
 
static bool GetParams(string path, out UUID uuid, out ulong regionHandle, out string action)
Extract the param from an uri. 
 
static bool GetAuthentication(IOSHttpRequest httpRequest, out string authority, out string authKey)