* Optimized usings

* Shortened type references
* Removed redundant 'this' qualifier
This commit is contained in:
lbsa71
2007-10-30 09:05:31 +00:00
parent c32d1f0562
commit 67e12b95ea
353 changed files with 15459 additions and 10338 deletions

View File

@@ -26,37 +26,36 @@
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace OpenSim.Framework.Servers
{
public abstract class BaseStreamHandler : IStreamHandler
{
virtual public string ContentType
public virtual string ContentType
{
get { return "application/xml"; }
}
private string m_httpMethod;
virtual public string HttpMethod
public virtual string HttpMethod
{
get { return m_httpMethod; }
}
private string m_path;
virtual public string Path
public virtual string Path
{
get { return m_path; }
}
protected string GetParam( string path )
protected string GetParam(string path)
{
return path.Substring( m_path.Length );
return path.Substring(m_path.Length);
}
public abstract byte[] Handle(string path, Stream request);
protected BaseStreamHandler(string httpMethod, string path)
@@ -65,4 +64,4 @@ namespace OpenSim.Framework.Servers
m_path = path;
}
}
}
}