Property | Type | Description | |
---|---|---|---|
CurrentProject | IPlovrProject | ||
CurrentSettings |
Method | Description | |
---|---|---|
CreateInstance ( string typeStr, |
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.
|
Method | Description | |
---|---|---|
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 ( |
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 |
Convert closure compiler messages to JSON.
|
Method | Description | |
---|---|---|
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.
|
public static CreateInstance ( string typeStr, |
||
typeStr | string | a string representation of the current route |
context | the http context | |
return |
protected FixSlash ( string str ) : string | ||
str | string | the string we want to switch the slashes in |
return | string |
protected Handler ( |
||
context | ||
return | System |
protected ResolveInputPath ( string fullPath ) : string | ||
fullPath | string | the full path to convert |
return | string |
protected ShowHtmlResponse ( string response ) : void | ||
response | string | |
return | void |
protected ShowJavaScriptFileResponse ( string file ) : void | ||
file | string | the file to output |
return | void |
protected ShowJavaScriptResponse ( string response ) : void | ||
response | string | the output |
return | void |
protected ShowResponse ( string response, string contentType ) : void | ||
response | string | the output |
contentType | string | the content type |
return | void |
protected ToJson ( List |
||
output | List |
the message output from the closure compiler |
return | string |