C# Class Plovr.Modules.InputHandler

Inheritance: Handler
Afficher le fichier Open project: hikirsch/Plovr.NET

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat string

InputHandler() public méthode

public InputHandler ( HttpContext context ) : System
context System.Web.HttpContext
Résultat System

Run() public méthode

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
Résultat void