C# 클래스 Plovr.Modules.Handler

파일 보기 프로젝트 열기: hikirsch/Plovr.NET

보호된 프로퍼티들

프로퍼티 타입 설명
CurrentProject IPlovrProject
CurrentSettings Plovr.Model.PlovrSettings

공개 메소드들

메소드 설명
CreateInstance ( string typeStr, HttpContext context ) : Handler

Create a new instance of the specific route that is, this is a static method.

Run ( ) : void

An abstract method, every handler will implement this function and will be called after alll common pre-processing has occured.

보호된 메소드들

메소드 설명
FixSlash ( string str ) : string

Windows file system slashes are \, URL's are in /, this makes things a little easier for us.

GetIdFromUri ( ) : string

The ID can be passed from the QueryString to override the DefaultProject flag.

Override in subclasses if you need to get it from path instead of QueryString

GetRootUrl ( ) : string

return a root url of the plovr handler, e.g. http://localhost:9810/Plovr.NET

Handler ( HttpContext context ) : System

Constructor, starts by initalizing the current project and settings properties.

InitCurrentProject ( ) : void
ResolveInputPath ( string fullPath ) : string

Pass a full path and convert it to an input handler path

ShowHtmlResponse ( string response ) : void

Show the resposne with the html content type.

ShowJavaScriptFileResponse ( string file ) : void

Show a file in the response and set the content type as javascript.

ShowJavaScriptResponse ( string response ) : void

Show the response with a javascript content type.

ShowResponse ( string response, string contentType ) : void

Show the response with the specified content type. The request will then end.

ToJson ( List output ) : string

Convert closure compiler messages to JSON.

비공개 메소드들

메소드 설명
GetModeFromQueryString ( ) : ClosureCompilerMode?

Retrieves a mode override from the querystring, if it exists.

InitSettings ( ) : void

Using the HttpContext as the current website that is loaded, load the current project and settings.

메소드 상세

CreateInstance() 공개 정적인 메소드

Create a new instance of the specific route that is, this is a static method.
public static CreateInstance ( string typeStr, HttpContext context ) : Handler
typeStr string a string representation of the current route
context System.Web.HttpContext the http context
리턴 Handler

FixSlash() 보호된 메소드

Windows file system slashes are \, URL's are in /, this makes things a little easier for us.
protected FixSlash ( string str ) : string
str string the string we want to switch the slashes in
리턴 string

GetIdFromUri() 보호된 메소드

The ID can be passed from the QueryString to override the DefaultProject flag.
Override in subclasses if you need to get it from path instead of QueryString
protected GetIdFromUri ( ) : string
리턴 string

GetRootUrl() 보호된 메소드

return a root url of the plovr handler, e.g. http://localhost:9810/Plovr.NET
protected GetRootUrl ( ) : string
리턴 string

Handler() 보호된 메소드

Constructor, starts by initalizing the current project and settings properties.
protected Handler ( HttpContext context ) : System
context System.Web.HttpContext
리턴 System

InitCurrentProject() 보호된 메소드

protected InitCurrentProject ( ) : void
리턴 void

ResolveInputPath() 보호된 메소드

Pass a full path and convert it to an input handler path
protected ResolveInputPath ( string fullPath ) : string
fullPath string the full path to convert
리턴 string

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

An abstract method, every handler will implement this function and will be called after alll common pre-processing has occured.
public abstract Run ( ) : void
리턴 void

ShowHtmlResponse() 보호된 메소드

Show the resposne with the html content type.
protected ShowHtmlResponse ( string response ) : void
response string
리턴 void

ShowJavaScriptFileResponse() 보호된 메소드

Show a file in the response and set the content type as javascript.
protected ShowJavaScriptFileResponse ( string file ) : void
file string the file to output
리턴 void

ShowJavaScriptResponse() 보호된 메소드

Show the response with a javascript content type.
protected ShowJavaScriptResponse ( string response ) : void
response string the output
리턴 void

ShowResponse() 보호된 메소드

Show the response with the specified content type. The request will then end.
protected ShowResponse ( string response, string contentType ) : void
response string the output
contentType string the content type
리턴 void

ToJson() 보호된 메소드

Convert closure compiler messages to JSON.
protected ToJson ( List output ) : string
output List the message output from the closure compiler
리턴 string

프로퍼티 상세

CurrentProject 보호되어 있는 프로퍼티

the current project settings that are loaded
protected IPlovrProject CurrentProject
리턴 IPlovrProject

CurrentSettings 보호되어 있는 프로퍼티

the current settings for plovr
protected PlovrSettings,Plovr.Model CurrentSettings
리턴 Plovr.Model.PlovrSettings