aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/CAPSService.cs
blob: a8eac26bea62c1abbb0e3f1e89000a6b2dd47e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Security.Cryptography;
using libsecondlife;
using Nwc.XmlRpc;
using OpenSim.Framework.Console;
using OpenSim.Framework.Data;
using OpenSim.Framework.Interfaces;
using OpenSim.Framework.Inventory;
using OpenSim.Framework.Utilities;
using OpenSim.Framework.Servers;

namespace OpenSim.Framework.UserManagement
{
    public class CAPSService
    {
        private BaseHttpServer m_server;

        public CAPSService(BaseHttpServer httpServer)
        {
            m_server = httpServer;
            this.AddCapsSeedHandler("/CapsSeed/", CapsRequest);
        }

        private void AddCapsSeedHandler(string path, RestMethod restMethod)
        {
            m_server.AddStreamHandler(new RestStreamHandler("POST",  path, restMethod));
        }

        public string CapsRequest(string request, string path, string param)
        {
            System.Console.WriteLine("new caps request " + request +" from path "+ path);
            return "";
        }
    }
}