diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Framework/Servers/BaseStreamHandler.cs | |
parent | * Deleted .user file (diff) | |
download | opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to 'OpenSim/Framework/Servers/BaseStreamHandler.cs')
-rw-r--r-- | OpenSim/Framework/Servers/BaseStreamHandler.cs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/OpenSim/Framework/Servers/BaseStreamHandler.cs b/OpenSim/Framework/Servers/BaseStreamHandler.cs index 4b609c3..cd99183 100644 --- a/OpenSim/Framework/Servers/BaseStreamHandler.cs +++ b/OpenSim/Framework/Servers/BaseStreamHandler.cs | |||
@@ -26,37 +26,36 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using System.IO; | 29 | using System.IO; |
33 | 30 | ||
34 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
35 | { | 32 | { |
36 | public abstract class BaseStreamHandler : IStreamHandler | 33 | public abstract class BaseStreamHandler : IStreamHandler |
37 | { | 34 | { |
38 | virtual public string ContentType | 35 | public virtual string ContentType |
39 | { | 36 | { |
40 | get { return "application/xml"; } | 37 | get { return "application/xml"; } |
41 | } | 38 | } |
42 | 39 | ||
43 | private string m_httpMethod; | 40 | private string m_httpMethod; |
44 | virtual public string HttpMethod | 41 | |
42 | public virtual string HttpMethod | ||
45 | { | 43 | { |
46 | get { return m_httpMethod; } | 44 | get { return m_httpMethod; } |
47 | } | 45 | } |
48 | 46 | ||
49 | private string m_path; | 47 | private string m_path; |
50 | virtual public string Path | 48 | |
49 | public virtual string Path | ||
51 | { | 50 | { |
52 | get { return m_path; } | 51 | get { return m_path; } |
53 | } | 52 | } |
54 | 53 | ||
55 | protected string GetParam( string path ) | 54 | protected string GetParam(string path) |
56 | { | 55 | { |
57 | return path.Substring( m_path.Length ); | 56 | return path.Substring(m_path.Length); |
58 | } | 57 | } |
59 | 58 | ||
60 | public abstract byte[] Handle(string path, Stream request); | 59 | public abstract byte[] Handle(string path, Stream request); |
61 | 60 | ||
62 | protected BaseStreamHandler(string httpMethod, string path) | 61 | protected BaseStreamHandler(string httpMethod, string path) |
@@ -65,4 +64,4 @@ namespace OpenSim.Framework.Servers | |||
65 | m_path = path; | 64 | m_path = path; |
66 | } | 65 | } |
67 | } | 66 | } |
68 | } | 67 | } \ No newline at end of file |