diff options
author | lbsa71 | 2007-09-24 07:30:30 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-24 07:30:30 +0000 |
commit | 1302ef44e3c632159378bc4042c753bcf36e9c63 (patch) | |
tree | 6b6295ac233ecb05afe6432a903ec616e4fa079a /OpenSim/Framework/Communications/CAPSService.cs | |
parent | * Trying to streamline CommunicationsManager (diff) | |
download | opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.zip opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.tar.gz opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.tar.bz2 opensim-SC-1302ef44e3c632159378bc4042c753bcf36e9c63.tar.xz |
* Started major restructusing of comms to prepare for better grid and region functionality
* Working towards one shared set of services
* Killed off two projects with very little functionality
Diffstat (limited to 'OpenSim/Framework/Communications/CAPSService.cs')
-rw-r--r-- | OpenSim/Framework/Communications/CAPSService.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/CAPSService.cs b/OpenSim/Framework/Communications/CAPSService.cs new file mode 100644 index 0000000..a8eac26 --- /dev/null +++ b/OpenSim/Framework/Communications/CAPSService.cs | |||
@@ -0,0 +1,38 @@ | |||
1 | using System; | ||
2 | using System.Collections; | ||
3 | using System.Collections.Generic; | ||
4 | using System.Reflection; | ||
5 | using System.Security.Cryptography; | ||
6 | using libsecondlife; | ||
7 | using Nwc.XmlRpc; | ||
8 | using OpenSim.Framework.Console; | ||
9 | using OpenSim.Framework.Data; | ||
10 | using OpenSim.Framework.Interfaces; | ||
11 | using OpenSim.Framework.Inventory; | ||
12 | using OpenSim.Framework.Utilities; | ||
13 | using OpenSim.Framework.Servers; | ||
14 | |||
15 | namespace OpenSim.Framework.UserManagement | ||
16 | { | ||
17 | public class CAPSService | ||
18 | { | ||
19 | private BaseHttpServer m_server; | ||
20 | |||
21 | public CAPSService(BaseHttpServer httpServer) | ||
22 | { | ||
23 | m_server = httpServer; | ||
24 | this.AddCapsSeedHandler("/CapsSeed/", CapsRequest); | ||
25 | } | ||
26 | |||
27 | private void AddCapsSeedHandler(string path, RestMethod restMethod) | ||
28 | { | ||
29 | m_server.AddStreamHandler(new RestStreamHandler("POST", path, restMethod)); | ||
30 | } | ||
31 | |||
32 | public string CapsRequest(string request, string path, string param) | ||
33 | { | ||
34 | System.Console.WriteLine("new caps request " + request +" from path "+ path); | ||
35 | return ""; | ||
36 | } | ||
37 | } | ||
38 | } | ||