aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/UserProfileManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Framework/UserProfileManager.cs')
-rw-r--r--OpenSim.Framework/UserProfileManager.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim.Framework/UserProfileManager.cs b/OpenSim.Framework/UserProfileManager.cs
index 6118aa7..d474834 100644
--- a/OpenSim.Framework/UserProfileManager.cs
+++ b/OpenSim.Framework/UserProfileManager.cs
@@ -32,6 +32,22 @@ namespace OpenSim.Framework.User
32 DefaultStartupMsg = message; 32 DefaultStartupMsg = message;
33 } 33 }
34 34
35 public virtual string ParseXMLRPC(string requestBody)
36 {
37
38 XmlRpcRequest request = (XmlRpcRequest)(new XmlRpcRequestDeserializer()).Deserialize(requestBody);
39
40 switch (request.MethodName)
41 {
42 case "login_to_simulator":
43 XmlRpcResponse response = XmlRpcLoginMethod(request);
44
45 return (Regex.Replace(XmlRpcResponseSerializer.Singleton.Serialize(response), "utf-16", "utf-8"));
46 }
47
48 return "";
49 }
50
35 public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request) 51 public XmlRpcResponse XmlRpcLoginMethod(XmlRpcRequest request)
36 { 52 {
37 XmlRpcResponse response = new XmlRpcResponse(); 53 XmlRpcResponse response = new XmlRpcResponse();