C# Class Castle.MonoRail.TestSupport.MonoRailTestWorkerRequest

Used to integrate with the ASP.Net Runtime
Inheritance: System.Web.Hosting.SimpleWorkerRequest
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
CloseConnection ( ) : void
EndOfRequest ( ) : void
FlushResponse ( bool finalFlush ) : void
GetAppPath ( ) : string
GetAppPathTranslated ( ) : String
GetFilePath ( ) : string
GetFilePathTranslated ( ) : string
GetHttpVerbName ( ) : string
GetHttpVersion ( ) : string
GetKnownRequestHeader ( int index ) : String
GetLocalAddress ( ) : string
GetLocalPort ( ) : int
GetPreloadedEntityBody ( ) : byte[]
GetProtocol ( ) : string
GetQueryString ( ) : String
GetQueryStringRawBytes ( ) : byte[]
GetRawUrl ( ) : string
GetRemoteAddress ( ) : string
GetRemotePort ( ) : int
GetServerVariable ( string name ) : string
GetUnknownRequestHeader ( String name ) : String
GetUnknownRequestHeaders ( ) : String[][]
GetUriPath ( ) : string
GetUserToken ( ) : IntPtr
HeadersSent ( ) : bool
IsClientConnected ( ) : bool
IsEntireEntityBodyIsPreloaded ( ) : bool
IsSecure ( ) : bool
MapPath ( String path ) : String
MonoRailTestWorkerRequest ( TestRequest requestData, String virtualAppPath, String physicalAppPath, TextWriter output ) : System
ReadEntityBody ( byte buffer, int size ) : int
SendCalculatedContentLength ( int contentLength ) : void
SendKnownResponseHeader ( int index, string value ) : void
SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
SendResponseFromFile ( string filename, long offset, long length ) : void
SendResponseFromMemory ( byte data, int length ) : void
SendStatus ( int statusCode, string statusDescription ) : void
SendUnknownResponseHeader ( string name, string value ) : void

Protected Methods

Method Description
Prepare ( ) : void

Private Methods

Method Description
GetPathInternal ( ) : string
ProcessHeaders ( ) : void
ProcessPostBody ( ) : void
ProcessQueryString ( ) : void

Method Details

CloseConnection() public method

public CloseConnection ( ) : void
return void

EndOfRequest() public method

public EndOfRequest ( ) : void
return void

FlushResponse() public method

public FlushResponse ( bool finalFlush ) : void
finalFlush bool
return void

GetAppPath() public method

public GetAppPath ( ) : string
return string

GetAppPathTranslated() public method

public GetAppPathTranslated ( ) : String
return String

GetFilePath() public method

public GetFilePath ( ) : string
return string

GetFilePathTranslated() public method

public GetFilePathTranslated ( ) : string
return string

GetHttpVerbName() public method

public GetHttpVerbName ( ) : string
return string

GetHttpVersion() public method

public GetHttpVersion ( ) : string
return string

GetKnownRequestHeader() public method

public GetKnownRequestHeader ( int index ) : String
index int
return String

GetLocalAddress() public method

public GetLocalAddress ( ) : string
return string

GetLocalPort() public method

public GetLocalPort ( ) : int
return int

GetPreloadedEntityBody() public method

public GetPreloadedEntityBody ( ) : byte[]
return byte[]

GetProtocol() public method

public GetProtocol ( ) : string
return string

GetQueryString() public method

public GetQueryString ( ) : String
return String

GetQueryStringRawBytes() public method

public GetQueryStringRawBytes ( ) : byte[]
return byte[]

GetRawUrl() public method

public GetRawUrl ( ) : string
return string

GetRemoteAddress() public method

public GetRemoteAddress ( ) : string
return string

GetRemotePort() public method

public GetRemotePort ( ) : int
return int

GetServerVariable() public method

public GetServerVariable ( string name ) : string
name string
return string

GetUnknownRequestHeader() public method

public GetUnknownRequestHeader ( String name ) : String
name String
return String

GetUnknownRequestHeaders() public method

public GetUnknownRequestHeaders ( ) : String[][]
return String[][]

GetUriPath() public method

public GetUriPath ( ) : string
return string

GetUserToken() public method

public GetUserToken ( ) : IntPtr
return System.IntPtr

HeadersSent() public method

public HeadersSent ( ) : bool
return bool

IsClientConnected() public method

public IsClientConnected ( ) : bool
return bool

IsEntireEntityBodyIsPreloaded() public method

public IsEntireEntityBodyIsPreloaded ( ) : bool
return bool

IsSecure() public method

public IsSecure ( ) : bool
return bool

MapPath() public method

public MapPath ( String path ) : String
path String
return String

MonoRailTestWorkerRequest() public method

public MonoRailTestWorkerRequest ( TestRequest requestData, String virtualAppPath, String physicalAppPath, TextWriter output ) : System
requestData TestRequest
virtualAppPath String
physicalAppPath String
output System.IO.TextWriter
return System

Prepare() protected method

protected Prepare ( ) : void
return void

ReadEntityBody() public method

public ReadEntityBody ( byte buffer, int size ) : int
buffer byte
size int
return int

SendCalculatedContentLength() public method

public SendCalculatedContentLength ( int contentLength ) : void
contentLength int
return void

SendKnownResponseHeader() public method

public SendKnownResponseHeader ( int index, string value ) : void
index int
value string
return void

SendResponseFromFile() public method

public SendResponseFromFile ( IntPtr handle, long offset, long length ) : void
handle System.IntPtr
offset long
length long
return void

SendResponseFromFile() public method

public SendResponseFromFile ( string filename, long offset, long length ) : void
filename string
offset long
length long
return void

SendResponseFromMemory() public method

public SendResponseFromMemory ( byte data, int length ) : void
data byte
length int
return void

SendStatus() public method

public SendStatus ( int statusCode, string statusDescription ) : void
statusCode int
statusDescription string
return void

SendUnknownResponseHeader() public method

public SendUnknownResponseHeader ( string name, string value ) : void
name string
value string
return void