C# 클래스 Castle.MonoRail.Framework.Adapters.ResponseAdapter

Adapts the IResponse to an HttpResponse instance.
상속: IResponse
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

AppendHeader() 공개 메소드

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

BinaryWrite() 공개 메소드

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

BinaryWrite() 공개 메소드

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

Clear() 공개 메소드

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

ClearContent() 공개 메소드

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

CreateCookie() 공개 메소드

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

CreateCookie() 공개 메소드

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

CreateCookie() 공개 메소드

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.
리턴 void

Redirect() 공개 메소드

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

Redirect() 공개 메소드

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

Redirect() 공개 메소드

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.
리턴 void

Redirect() 공개 메소드

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

RemoveCookie() 공개 메소드

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

ResponseAdapter() 공개 메소드

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.
리턴 System

Write() 공개 메소드

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

Write() 공개 메소드

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

Write() 공개 메소드

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.
리턴 void

Write() 공개 메소드

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

WriteFile() 공개 메소드

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