C# Class Castle.MonoRail.Framework.Adapters.ResponseAdapter

Adapts the IResponse to an HttpResponse instance.
Inheritance: IResponse
Show file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
AppendHeader ( String name, String headerValue ) : void

Appends the header.

BinaryWrite ( Stream stream ) : void

Writes the stream to the browser

BinaryWrite ( byte buffer ) : void

Writes the buffer to the browser

Clear ( ) : void

Clears the response (only works if buffered)

ClearContent ( ) : void

Clears the response content (only works if buffered).

CreateCookie ( System.Web.HttpCookie cookie ) : void

Creates the cookie.

CreateCookie ( String name, String cookieValue ) : void

Creates the cookie.

CreateCookie ( String name, String cookieValue, System.DateTime expiration ) : void

Creates the cookie.

Redirect ( String url ) : void

Redirects the specified URL.

Redirect ( String controller, String action ) : void

Redirects the specified controller.

Redirect ( String area, String controller, String action ) : void

Redirects the specified area.

Redirect ( String url, bool endProcess ) : void

Redirects the specified URL.

RemoveCookie ( string name ) : void

Removes the cookie.

ResponseAdapter ( HttpResponse response, IRailsEngineContext context, String appPath ) : System

Initializes a new instance of the ResponseAdapter class.

Write ( String s ) : void

Writes the specified string.

Write ( char ch ) : void

Writes the specified char.

Write ( char buffer, int index, int count ) : void

Writes the specified buffer.

Write ( object obj ) : void

Writes the specified obj.

WriteFile ( String fileName ) : void

Writes the file.

Method Details

AppendHeader() public method

Appends the header.
public AppendHeader ( String name, String headerValue ) : void
name String The name.
headerValue String The header value.
return void

BinaryWrite() public method

Writes the stream to the browser
public BinaryWrite ( Stream stream ) : void
stream Stream The stream.
return void

BinaryWrite() public method

Writes the buffer to the browser
public BinaryWrite ( byte buffer ) : void
buffer byte The buffer.
return void

Clear() public method

Clears the response (only works if buffered)
public Clear ( ) : void
return void

ClearContent() public method

Clears the response content (only works if buffered).
public ClearContent ( ) : void
return void

CreateCookie() public method

Creates the cookie.
public CreateCookie ( System.Web.HttpCookie cookie ) : void
cookie System.Web.HttpCookie The cookie.
return void

CreateCookie() public method

Creates the cookie.
public CreateCookie ( String name, String cookieValue ) : void
name String The name.
cookieValue String The cookie value.
return void

CreateCookie() public method

Creates the cookie.
public CreateCookie ( String name, String cookieValue, System.DateTime expiration ) : void
name String The name.
cookieValue String The cookie value.
expiration System.DateTime The expiration.
return void

Redirect() public method

Redirects the specified URL.
public Redirect ( String url ) : void
url String The URL.
return void

Redirect() public method

Redirects the specified controller.
public Redirect ( String controller, String action ) : void
controller String The controller.
action String The action.
return void

Redirect() public method

Redirects the specified area.
public Redirect ( String area, String controller, String action ) : void
area String The area.
controller String The controller.
action String The action.
return void

Redirect() public method

Redirects the specified URL.
public Redirect ( String url, bool endProcess ) : void
url String The URL.
endProcess bool if set to true [end process].
return void

RemoveCookie() public method

Removes the cookie.
public RemoveCookie ( string name ) : void
name string The name.
return void

ResponseAdapter() public method

Initializes a new instance of the ResponseAdapter class.
public ResponseAdapter ( HttpResponse response, IRailsEngineContext context, String appPath ) : System
response System.Web.HttpResponse The response.
context IRailsEngineContext The parent context.
appPath String The app path.
return System

Write() public method

Writes the specified string.
public Write ( String s ) : void
s String The string.
return void

Write() public method

Writes the specified char.
public Write ( char ch ) : void
ch char The char.
return void

Write() public method

Writes the specified buffer.
public Write ( char buffer, int index, int count ) : void
buffer char The buffer.
index int The index.
count int The count.
return void

Write() public method

Writes the specified obj.
public Write ( object obj ) : void
obj object The obj.
return void

WriteFile() public method

Writes the file.
public WriteFile ( String fileName ) : void
fileName String Name of the file.
return void