aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseStreamHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseStreamHandler.cs30
1 files changed, 2 insertions, 28 deletions
diff --git a/OpenSim/Framework/Servers/BaseStreamHandler.cs b/OpenSim/Framework/Servers/BaseStreamHandler.cs
index cd99183..a17c6ec 100644
--- a/OpenSim/Framework/Servers/BaseStreamHandler.cs
+++ b/OpenSim/Framework/Servers/BaseStreamHandler.cs
@@ -30,38 +30,12 @@ using System.IO;
30 30
31namespace OpenSim.Framework.Servers 31namespace OpenSim.Framework.Servers
32{ 32{
33 public abstract class BaseStreamHandler : IStreamHandler 33 public abstract class BaseStreamHandler : BaseRequestHandler, IStreamedRequestHandler
34 { 34 {
35 public virtual string ContentType
36 {
37 get { return "application/xml"; }
38 }
39
40 private string m_httpMethod;
41
42 public virtual string HttpMethod
43 {
44 get { return m_httpMethod; }
45 }
46
47 private string m_path;
48
49 public virtual string Path
50 {
51 get { return m_path; }
52 }
53
54 protected string GetParam(string path)
55 {
56 return path.Substring(m_path.Length);
57 }
58
59 public abstract byte[] Handle(string path, Stream request); 35 public abstract byte[] Handle(string path, Stream request);
60 36
61 protected BaseStreamHandler(string httpMethod, string path) 37 protected BaseStreamHandler(string httpMethod, string path) : base(httpMethod, path)
62 { 38 {
63 m_httpMethod = httpMethod;
64 m_path = path;
65 } 39 }
66 } 40 }
67} \ No newline at end of file 41} \ No newline at end of file