C# Class Plovr.Modules.InputHandler

Inheritance: Handler
显示文件 Open project: hikirsch/Plovr.NET

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
GetFilePathFromUri ( string projectId ) : string

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

Method Details

GetIdFromUri() protected method

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
return string

InputHandler() public method

public InputHandler ( HttpContext context ) : System
context System.Web.HttpContext
return System

Run() public method

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
return void