aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseStreamHandler.cs
diff options
context:
space:
mode:
authorlbsa712007-10-31 12:45:03 +0000
committerlbsa712007-10-31 12:45:03 +0000
commit0d528e1d226283fa9acfafbd60b8a7461f509a85 (patch)
tree961a56c1e0f4857787a38ba5167dfc48404a9a90 /OpenSim/Framework/Servers/BaseStreamHandler.cs
parentfixed bug with user not getting land properties on login (diff)
downloadopensim-SC_OLD-0d528e1d226283fa9acfafbd60b8a7461f509a85.zip
opensim-SC_OLD-0d528e1d226283fa9acfafbd60b8a7461f509a85.tar.gz
opensim-SC_OLD-0d528e1d226283fa9acfafbd60b8a7461f509a85.tar.bz2
opensim-SC_OLD-0d528e1d226283fa9acfafbd60b8a7461f509a85.tar.xz
* Added a streamhandler that does streams both in and out
* The RestDeserialisehandler now does streams and returns an object instead of string
Diffstat (limited to 'OpenSim/Framework/Servers/BaseStreamHandler.cs')
-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