C# Class Universe.Framework.Servers.HttpServer.BaseRequestHandler

Inheritance: IStreamedRequestHandler
Datei anzeigen Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
m_httpMethod string
m_path string

Public Methods

Method Description
GetBodyAsString ( Stream request ) : string
Handle ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]

Protected Methods

Method Description
BaseRequestHandler ( string httpMethod, string path ) : System
CheckParam ( string path ) : bool
GetParam ( string path ) : string
SplitParams ( string path ) : string[]

Method Details

BaseRequestHandler() protected method

protected BaseRequestHandler ( string httpMethod, string path ) : System
httpMethod string
path string
return System

CheckParam() protected method

protected CheckParam ( string path ) : bool
path string
return bool

GetBodyAsString() public method

public GetBodyAsString ( Stream request ) : string
request Stream
return string

GetParam() protected method

protected GetParam ( string path ) : string
path string
return string

Handle() public abstract method

public abstract Handle ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return byte[]

SplitParams() protected method

protected SplitParams ( string path ) : string[]
path string
return string[]

Property Details

m_httpMethod protected_oe property

protected string m_httpMethod
return string

m_path protected_oe property

protected string m_path
return string