|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.FrameworkSupertype
coldbox.system.Interceptor
coldbox.system.interceptors.SES
public class SES
This interceptor provides complete SES and URL mappings support to ColdBox Applications
| Method Summary | |
|---|---|
void |
addModuleRoutes(string pattern, string module)
Add modules routes in the specified position |
void |
addRoute(string pattern, [string handler], [any action], [boolean packageResolverExempt='false'], [string matchVariables], [string view], [boolean viewNoLayout='false'], [boolean valuePairTranslation='true'], [any constraints=''], [string module=''], [string moduleRouting=''])
Adds a route to dispatch |
private void |
checkForInvalidURL(any route, any script_name, any event)
Check for invalid URL's |
void |
configure()
This is where the ses plugin configures itself |
private void |
findConventionNameValuePairs(string requestString, any match, struct params)
Find the convention name value pairs |
private Struct |
findRoute(any action, any event, [string module=''])
Figures out which route matches this request |
private string |
fixIISURLVars(any requestString, any rc)
Clean up some IIS funkyness |
boolean |
getAutoReload()
Set to auto reload the rules in each request |
string |
getBaseURL()
Get BaseURL |
private string |
getCGIElement(string cgielement)
The cgi element facade method |
private struct |
getCleanedPaths()
Get and Clean the path_info and script names |
private string |
getDefaultFrameworkAction()
Get the default framework action |
boolean |
getEnabled()
Get enabled |
boolean |
getLooseMatching()
Get the current loose matching property |
array |
getModuleRoutes(string module='')
Get a modules routes |
struct |
getModulesRoutingTable()
Get the entire modules routing table |
Array |
getRoutes()
Get the array containing all the routes |
boolean |
getUniqueURLs()
Get uniqueURLs |
private void |
importConfiguration()
Import the routing configuration file |
private any |
packageResolver(any routingString, any routeParams)
Resolve handler packages |
void |
preProcess(any event, struct interceptData)
This is the route dispatch |
private void |
processRouteOptionals(struct thisRoute)
Process route optionals |
private string |
serializeURL([string formVars=''], any event)
Serialize a URL |
void |
setAutoReload(boolean autoReload)
Get the auto reload flag |
void |
setBaseURL(string baseURL)
Set the base URL for the application |
void |
setEnabled(boolean enabled)
Set whether the interceptor is enabled or not |
void |
setLooseMatching(boolean looseMatching)
Set the loose matching property of the interceptor |
private void |
setModuleRoutingTable(struct routes)
Set the module routing table |
private void |
setRoutes(Array routes)
Internal override of the routes array |
void |
setUniqueURLs(boolean uniqueURLs)
Set the uniqueURLs property |
private void |
throwInvalidHTTP(string description)
Throw an invalid HTTP exception |
| Methods inherited from class coldbox.system.Interceptor |
|---|
appendToBuffer, clearBuffer, getBufferObject, getBufferString, getInterceptorService, getProperty, getproperties, init, propertyExists, setProperty, setproperties, unregister
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Method Detail |
|---|
public void addModuleRoutes(string pattern, string module)
pattern - The pattern to match against the URL.module - The module to load routes forpublic void addRoute(string pattern, [string handler], [any action], [boolean packageResolverExempt='false'], [string matchVariables], [string view], [boolean viewNoLayout='false'], [boolean valuePairTranslation='true'], [any constraints=''], [string module=''], [string moduleRouting=''])
pattern - The pattern to match against the URL.handler - The handler to execute if pattern matched.action - The action in a handler to execute if a pattern is matched. This can also be a structure or JSON structured based on the HTTP method(GET,POST,PUT,DELETE). ex: {GET:'show', PUT:'update', DELETE:'delete', POST:'save'}packageResolverExempt - If this is set to true, then the interceptor will not try to do handler package resolving. Else a package will always be resolved. Only works if :handler is in a patternmatchVariables - A string of name-value pair variables to add to the request collection when this pattern matches. This is a comma delimmitted list. Ex: spaceFound=true,missingAction=onTestview - The view to dispatch if pattern matches. No event will be fired, so handler,action will be ignored.viewNoLayout - If view is choosen, then you can choose to override and not display a layout with the view. Else the view renders in the assigned layout.valuePairTranslation - Activate convention name value pair translations or not. Turned on by defaultconstraints - A structure or JSON structure of regex constraint overrides for variable placeholders. The key is the name of the variable, the value is the regex to try to match.module - The module to add this route tomoduleRouting - Called internally by addModuleRoutes to add a module routing route.private void checkForInvalidURL(any route, any script_name, any event)
routescript_nameevent - The event object.public void configure()
private void findConventionNameValuePairs(string requestString, any match, struct params)
requestString - The request stringmatch - The regex matcherparams - The parameter structureprivate Struct findRoute(any action, any event, [string module=''])
action - The action evaluated by the path_infoevent - The event object.module - Find a route on a moduleprivate string fixIISURLVars(any requestString, any rc)
requestString - The request stringrc - The request collectionpublic boolean getAutoReload()
public string getBaseURL()
private string getCGIElement(string cgielement)
cgielement - The cgi element to retrieveprivate struct getCleanedPaths()
private string getDefaultFrameworkAction()
public boolean getEnabled()
public boolean getLooseMatching()
public array getModuleRoutes(string module='')
module - The name of the modulepublic struct getModulesRoutingTable()
public Array getRoutes()
public boolean getUniqueURLs()
private void importConfiguration()
private any packageResolver(any routingString, any routeParams)
routingString - The routing stringrouteParams - The route params arraypublic void preProcess(any event, struct interceptData)
event - The event object.interceptData - interceptData of intercepted info.private void processRouteOptionals(struct thisRoute)
thisRoute - The route structprivate string serializeURL([string formVars=''], any event)
formVarsevent - The event object.public void setAutoReload(boolean autoReload)
autoReloadpublic void setBaseURL(string baseURL)
baseURLpublic void setEnabled(boolean enabled)
enabledpublic void setLooseMatching(boolean looseMatching)
looseMatchingprivate void setModuleRoutingTable(struct routes)
routesprivate void setRoutes(Array routes)
routespublic void setUniqueURLs(boolean uniqueURLs)
uniqueURLsprivate void throwInvalidHTTP(string description)
description - The throw description
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||