aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseRequestHandler.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/BaseRequestHandler.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/BaseRequestHandler.cs')
-rw-r--r--OpenSim/Framework/Servers/BaseRequestHandler.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/BaseRequestHandler.cs b/OpenSim/Framework/Servers/BaseRequestHandler.cs
new file mode 100644
index 0000000..b357763
--- /dev/null
+++ b/OpenSim/Framework/Servers/BaseRequestHandler.cs
@@ -0,0 +1,35 @@
1namespace OpenSim.Framework.Servers
2{
3 public class BaseRequestHandler
4 {
5 public virtual string ContentType
6 {
7 get { return "application/xml"; }
8 }
9
10 private readonly string m_httpMethod;
11
12 public virtual string HttpMethod
13 {
14 get { return m_httpMethod; }
15 }
16
17 private readonly string m_path;
18
19 protected BaseRequestHandler(string httpMethod, string path)
20 {
21 m_httpMethod = httpMethod;
22 m_path = path;
23 }
24
25 public virtual string Path
26 {
27 get { return m_path; }
28 }
29
30 protected string GetParam(string path)
31 {
32 return path.Substring(m_path.Length);
33 }
34 }
35} \ No newline at end of file