C# 클래스 Plovr.Modules.InputHandler

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

공개 메소드들

메소드 설명
InputHandler ( HttpContext context ) : System
Run ( ) : void

When we run, we need to parse the URL for the specific file that's being requested. If the file that's being requested ends with a ".soy", then we pass it on to the SoyToJsSrcCompiler jar and show the results from that instead. Otherwise, it streams a file from the file system.

보호된 메소드들

메소드 설명
GetIdFromUri ( ) : string

Override to get ID from the Uri path instead of from the query string. Returns the first path item after "/input/" as the id.

비공개 메소드들

메소드 설명
GetFilePathFromUri ( string projectId ) : string

Get the path to file from base path. Returns full path after the current project id.

메소드 상세

GetIdFromUri() 보호된 메소드

Override to get ID from the Uri path instead of from the query string. Returns the first path item after "/input/" as the id.
protected GetIdFromUri ( ) : string
리턴 string

InputHandler() 공개 메소드

public InputHandler ( HttpContext context ) : System
context System.Web.HttpContext
리턴 System

Run() 공개 메소드

When we run, we need to parse the URL for the specific file that's being requested. If the file that's being requested ends with a ".soy", then we pass it on to the SoyToJsSrcCompiler jar and show the results from that instead. Otherwise, it streams a file from the file system.
public Run ( ) : void
리턴 void