C# 클래스 Castle.MonoRail.Framework.ViewEngineBase

Abstract base class for View Engines.
상속: IViewEngine, IServiceEnabledComponent
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

보호된 프로퍼티들

프로퍼티 타입 설명
serviceProvider IServiceProvider

공개 메소드들

메소드 설명
CreateJSGenerator ( IRailsEngineContext context ) : object

Implementors should return a generator instance if the view engine supports JS generation.

GenerateJS ( IRailsEngineContext context, Controller controller, string templateName ) : void

Processes the js generation view template - using the templateName to obtain the correct template, and using the context to output the result.

GenerateJS ( TextWriter output, IRailsEngineContext context, Controller controller, string templateName ) : void

Processes the js generation view template - using the templateName to obtain the correct template, and using the specified TextWriter to output the result.

HasTemplate ( String templateName ) : bool

Evaluates whether the specified template exists.

Process ( IRailsEngineContext context, Controller controller, String templateName ) : void

Processes the view - using the templateName to obtain the correct template, and using the context to output the result.

Process ( TextWriter output, IRailsEngineContext context, Controller controller, String templateName ) : void

Processes the view - using the templateName to obtain the correct template and writes the results to the System.IO.TextWriter.

ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void

Wraps the specified content in the layout using the context to output the result.

ProcessPartial ( TextWriter output, IRailsEngineContext context, Controller controller, string partialName ) : void

Should process the specified partial. The partial name must contains the path relative to the views folder.

Service ( IServiceProvider provider ) : void

Services the specified provider.

보호된 메소드들

메소드 설명
AdjustContentType ( IRailsEngineContext context ) : void

Sets the HTTP Content-Type header appropriately.

AdjustJavascriptContentType ( IRailsEngineContext context ) : void

Sets the HTTP Content-Type header to text/javascript

PostSendView ( Controller controller, object view ) : void

Invokes the Controller.PostSendView

PreSendView ( Controller controller, object view ) : void

Invokes the Controller.PreSendView

메소드 상세

AdjustContentType() 보호된 메소드

Sets the HTTP Content-Type header appropriately.
protected AdjustContentType ( IRailsEngineContext context ) : void
context IRailsEngineContext
리턴 void

AdjustJavascriptContentType() 보호된 메소드

Sets the HTTP Content-Type header to text/javascript
protected AdjustJavascriptContentType ( IRailsEngineContext context ) : void
context IRailsEngineContext
리턴 void

CreateJSGenerator() 공개 추상적인 메소드

Implementors should return a generator instance if the view engine supports JS generation.
public abstract CreateJSGenerator ( IRailsEngineContext context ) : object
context IRailsEngineContext The request context.
리턴 object

GenerateJS() 공개 메소드

Processes the js generation view template - using the templateName to obtain the correct template, and using the context to output the result.
public GenerateJS ( IRailsEngineContext context, Controller controller, string templateName ) : void
context IRailsEngineContext The request context.
controller Controller The controller.
templateName string Name of the template.
리턴 void

GenerateJS() 공개 추상적인 메소드

Processes the js generation view template - using the templateName to obtain the correct template, and using the specified TextWriter to output the result.
public abstract GenerateJS ( TextWriter output, IRailsEngineContext context, Controller controller, string templateName ) : void
output System.IO.TextWriter The output.
context IRailsEngineContext The request context.
controller Controller The controller.
templateName string Name of the template.
리턴 void

HasTemplate() 공개 추상적인 메소드

Evaluates whether the specified template exists.
public abstract HasTemplate ( String templateName ) : bool
templateName String
리턴 bool

PostSendView() 보호된 메소드

Invokes the Controller.PostSendView
protected PostSendView ( Controller controller, object view ) : void
controller Controller The controller.
view object The view argument.
리턴 void

PreSendView() 보호된 메소드

Invokes the Controller.PreSendView
protected PreSendView ( Controller controller, object view ) : void
controller Controller The controller.
view object The view argument.
리턴 void

Process() 공개 추상적인 메소드

Processes the view - using the templateName to obtain the correct template, and using the context to output the result.
public abstract Process ( IRailsEngineContext context, Controller controller, String templateName ) : void
context IRailsEngineContext
controller Controller
templateName String
리턴 void

Process() 공개 추상적인 메소드

Processes the view - using the templateName to obtain the correct template and writes the results to the System.IO.TextWriter.
public abstract Process ( TextWriter output, IRailsEngineContext context, Controller controller, String templateName ) : void
output System.IO.TextWriter
context IRailsEngineContext
controller Controller
templateName String
리턴 void

ProcessContents() 공개 추상적인 메소드

Wraps the specified content in the layout using the context to output the result.
public abstract ProcessContents ( IRailsEngineContext context, Controller controller, String contents ) : void
context IRailsEngineContext
controller Controller
contents String
리턴 void

ProcessPartial() 공개 추상적인 메소드

Should process the specified partial. The partial name must contains the path relative to the views folder.
public abstract ProcessPartial ( TextWriter output, IRailsEngineContext context, Controller controller, string partialName ) : void
output System.IO.TextWriter The output.
context IRailsEngineContext The request context.
controller Controller The controller.
partialName string The partial name.
리턴 void

Service() 공개 메소드

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
리턴 void

프로퍼티 상세

serviceProvider 보호되어 있는 프로퍼티

The service provider instance
protected IServiceProvider serviceProvider
리턴 IServiceProvider