C# Class BF2Statistics.Web.ASP.ASPResponse

This object provides methods to help with ASP specific responses
Inheritance: HttpResponse
Exibir arquivo Open project: BF2Statistics/ControlCenter Class Usage Examples

Protected Properties

Property Type Description
Formatted FormattedOutput

Public Methods

Method Description
ASPResponse ( HttpListenerResponse Response, HttpClient Client ) : System

Constructor

AddData ( FormattedOutput Data ) : void

Adds HeaderData to the current output

Send ( ) : void

Sends all output to the browser

WriteDataLine ( ) : void

Writes a Data line with the specified parameters

WriteDataLine ( List Params ) : void

Writes a data line with the items provided in the List

WriteFreeformLine ( string Message ) : void

Write's clean data to the stream

WriteHeaderDataPair ( object>.Dictionary Data ) : void

Adds HeaderData to the current output

WriteHeaderLine ( ) : void

Writes a Header line with the specified parameters

WriteHeaderLine ( List Headers ) : void

Writes a header line with the items provided in the List

WriteResponseStart ( ) : void

Opens the ASP response with the Valid Data opening tag ( "O" ) Calling this method will reset all current running data.

WriteResponseStart ( bool IsValid ) : void

Starts the ASP formatted response

Protected Methods

Method Description
WriteResponseEnd ( ) : void

Writes the closing ASP response tags

Method Details

ASPResponse() public method

Constructor
public ASPResponse ( HttpListenerResponse Response, HttpClient Client ) : System
Response System.Net.HttpListenerResponse
Client HttpClient
return System

AddData() public method

Adds HeaderData to the current output
public AddData ( FormattedOutput Data ) : void
Data FormattedOutput
return void

Send() public method

Sends all output to the browser
public Send ( ) : void
return void

WriteDataLine() public method

Writes a Data line with the specified parameters
public WriteDataLine ( ) : void
return void

WriteDataLine() public method

Writes a data line with the items provided in the List
public WriteDataLine ( List Params ) : void
Params List
return void

WriteFreeformLine() public method

Write's clean data to the stream
public WriteFreeformLine ( string Message ) : void
Message string
return void

WriteHeaderDataPair() public method

Adds HeaderData to the current output
public WriteHeaderDataPair ( object>.Dictionary Data ) : void
Data object>.Dictionary
return void

WriteHeaderLine() public method

Writes a Header line with the specified parameters
public WriteHeaderLine ( ) : void
return void

WriteHeaderLine() public method

Writes a header line with the items provided in the List
public WriteHeaderLine ( List Headers ) : void
Headers List
return void

WriteResponseEnd() protected method

Writes the closing ASP response tags
protected WriteResponseEnd ( ) : void
return void

WriteResponseStart() public method

Opens the ASP response with the Valid Data opening tag ( "O" ) Calling this method will reset all current running data.
public WriteResponseStart ( ) : void
return void

WriteResponseStart() public method

Starts the ASP formatted response
public WriteResponseStart ( bool IsValid ) : void
IsValid bool /// Defines whether this response is valid data. If false, /// the opening tag will be an "E" rather then "O" /// Calling this method will reset all current running data. ///
return void

Property Details

Formatted protected_oe property

Internal, Temporary Formatted Output class. We use this to easily transpose format
protected FormattedOutput,BF2Statistics.Web.ASP Formatted
return FormattedOutput