aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseRequestHandler.cs
blob: b3577631f6b7eb29f834c786886104622fea7c92 (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
namespace OpenSim.Framework.Servers
{
    public class BaseRequestHandler
    {
        public virtual string ContentType
        {
            get { return "application/xml"; }
        }

        private readonly string m_httpMethod;

        public virtual string HttpMethod
        {
            get { return m_httpMethod; }
        }

        private readonly string m_path;

        protected BaseRequestHandler(string httpMethod, string path)
        {
            m_httpMethod = httpMethod;
            m_path = path;
        }

        public virtual string Path
        {
            get { return m_path; }
        }

        protected string GetParam(string path)
        {
            return path.Substring(m_path.Length);
        }
    }
}