|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.web.Controller
public class Controller
This is the ColdBox Front Controller that dispatches events and manages your ColdBox application.
| Constructor Summary | |
|---|---|
init(string appRootPath)
Constructor |
|
| Method Summary | |
|---|---|
string |
getAppHash()
Get AppHash |
string |
getAppRootPath()
Get this application's physical path |
boolean |
getAppStartHandlerFired()
Get AppStartHandlerFired |
boolean |
getAspectsInitiated()
Get AspectsInitiated |
CFMLEngine |
getCFMLEngine()
Get the CFMLEngine utility class |
boolean |
getColdboxInitiated()
Get ColdboxInitiated |
any |
getColdboxOCM()
Get ColdboxOCM: coldbox |
struct |
getColdboxSettings()
I retrieve the ColdBox Settings Structure by Reference |
struct |
getConfigSettings()
I retrieve the Config Settings Structure by Reference |
any |
getDebuggerService()
Get DebuggerService: coldbox |
any |
getExceptionService()
Get ExceptionService: coldbox |
any |
getHandlerService()
Get HandlerService: coldbox |
any |
getInterceptorService()
Get interceptorService: coldbox |
any |
getLoaderService()
Get LoaderService: coldbox |
LogBox |
getLogBox()
Get the application's LogBox instance |
Logger |
getLogger()
The coldbox controller logger |
any |
getModuleService()
Get ModuleService: coldbox |
any |
getPlugin(any plugin, [boolean customPlugin='false'], [boolean newInstance='false'], [any module=''], [boolean init='true'])
I am the Plugin cfc object factory |
any |
getPluginService()
Get PluginService: coldbox |
any |
getRequestService()
Get RequestService: coldbox |
any |
getService(string service)
DEPRECATED: Internal ColdBox Transient Minimalistic Service Locator |
struct |
getServices()
Get all the registered services |
any |
getSetting([string name], [boolean FWSetting='false'])
I get a setting from the FW Config structures |
struct |
getSettingStructure([boolean FWSetting='false'], [boolean DeepCopyFlag='false'])
Compatability & Utility Method |
private Util |
getUtil()
Create and return a util object |
private any |
invoker(any target, any method, [any argCollection='[runtime expression]'], [boolean private='false'])
Method Invoker |
void |
persistVariables([string persist=''], [struct persistStruct])
@deprecated DO NOT USE ANYMORE |
private void |
pushTimers()
Push timers into stack |
any |
runEvent([any event=''], [boolean prepostExempt='false'], [boolean private='false'], [boolean default='false'])
I am an event handler runnable factory |
private void |
sendRelocation(string url, [boolean addtoken='false'], [numeric statusCode='0'])
Send a CF relocation via ColdBox |
void |
setAppHash(string AppHash)
Set AppHash |
void |
setAppRootPath(string appRootPath)
Set this application's physical path |
void |
setAppStartHandlerFired(boolean AppStartHandlerFired)
Set AppStartHandlerFired |
void |
setAspectsInitiated(boolean AspectsInitiated)
Set AspectsInitiated |
void |
setColdboxInitiated(boolean ColdboxInitiated)
Set ColdboxInitiated |
void |
setColdboxOCM(any ColdboxOCM)
Set ColdboxOCM |
void |
setColdboxSettings(struct ColdboxSettings)
Set ColdboxSettings |
void |
setConfigSettings(struct ConfigSettings)
Set ConfigSettings |
void |
setDebuggerService(any DebuggerService)
Set DebuggerService |
void |
setHandlerService(any HandlerService)
Set HandlerService |
void |
setInterceptorService(any interceptorService)
Set interceptorService |
void |
setLoaderService(any LoaderService)
Set LoaderService |
void |
setLogBox(LogBox logBox='')
Set the logBox instance |
void |
setLogger(Logger logger)
Set the coldbox controller logger |
void |
setModuleService(any ModuleService)
Set ModuleService |
void |
setNextEvent([string event='[runtime expression]'], [string queryString=''], [boolean addToken='false'], [string persist=''], [struct persistStruct='[runtime expression]'], [boolean ssl='false'], [string baseURL=''], [boolean postProcessExempt='false'], [string URL], [string URI], [numeric statusCode='0'])
I Set the next event to run and relocate the browser to that event |
void |
setPluginService(Any PluginService)
Set PluginService |
void |
setRequestService(any RequestService)
Set RequestService |
void |
setSetting([string name], [any value])
I set a Global Coldbox setting variable in the configstruct, if it exists it will be overrided |
boolean |
settingExists([string name], [boolean FWSetting='false'])
I Check if a value exists in the configstruct or the fwsettingsStruct |
private void |
throwInvalidHTTP(string description)
Throw an invalid HTTP exception |
private boolean |
validateAction(string action='', [string inclusion=''], [string exclusion=''])
Checks if an action can be executed according to inclusion/exclusion lists |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string appRootPath)
appRootPath - The app Root Path| Method Detail |
|---|
public string getAppHash()
public string getAppRootPath()
public boolean getAppStartHandlerFired()
public boolean getAspectsInitiated()
public CFMLEngine getCFMLEngine()
public boolean getColdboxInitiated()
public any getColdboxOCM()
public struct getColdboxSettings()
public struct getConfigSettings()
public any getDebuggerService()
public any getExceptionService()
public any getHandlerService()
public any getInterceptorService()
public any getLoaderService()
public LogBox getLogBox()
public Logger getLogger()
public any getModuleService()
Public any getPlugin(any plugin, [boolean customPlugin='false'], [boolean newInstance='false'], [any module=''], [boolean init='true'])
plugin - The Plugin object's name to instantiatecustomPlugin - Used internally to create custom plugins.newInstance - If true, it will create and return a new plugin. No caching or persistance.module - The module to retrieve the plugin frominit - Auto init() the plugin upon constructionpublic any getPluginService()
public any getRequestService()
public any getService(string service)
service - The transient service/manager to create.public struct getServices()
public any getSetting([string name], [boolean FWSetting='false'])
name - Name of the setting key to retrieveFWSetting - Boolean Flag. If true, it will retrieve from the fwSettingsStruct else from the configStruct. Default is false.public struct getSettingStructure([boolean FWSetting='false'], [boolean DeepCopyFlag='false'])
FWSetting - Boolean Flag. If true, it will retrieve from the fwSettingsStruct else the configStruct. Default is false.DeepCopyFlag - Default is false. True, creates a deep copy of the structure.private Util getUtil()
private any invoker(any target, any method, [any argCollection='[runtime expression]'], [boolean private='false'])
target - method - argCollection - The argument collection to passprivate - Private method or not?public void persistVariables([string persist=''], [struct persistStruct])
persist - What request collection keys to persist in the relocation. Keys must exist in the relocationpersistStruct - A structure of key-value pairs to persist.private void pushTimers()
Public any runEvent([any event=''], [boolean prepostExempt='false'], [boolean private='false'], [boolean default='false'])
event - The event to run as a string. If no current event is set, use the default event from the config.xml. This is a stringprepostExempt - If true, pre/post handlers will not be fired.private - Execute a private event or not, default is falsedefault - The flag that let's this service now if it is the default set event running or not. USED BY THE FRAMEWORK ONLYprivate void sendRelocation(string url, [boolean addtoken='false'], [numeric statusCode='0'])
url - The URL to relocate toaddtoken - Add the CF tokens or notstatusCode - The status code to usepublic void setAppHash(string AppHash)
AppHashpublic void setAppRootPath(string appRootPath)
appRootPathpublic void setAppStartHandlerFired(boolean AppStartHandlerFired)
AppStartHandlerFiredpublic void setAspectsInitiated(boolean AspectsInitiated)
AspectsInitiatedpublic void setColdboxInitiated(boolean ColdboxInitiated)
ColdboxInitiatedpublic void setColdboxOCM(any ColdboxOCM)
ColdboxOCM - coldbox.system.cache.CacheManagerpublic void setColdboxSettings(struct ColdboxSettings)
ColdboxSettingspublic void setConfigSettings(struct ConfigSettings)
ConfigSettingspublic void setDebuggerService(any DebuggerService)
DebuggerServicepublic void setHandlerService(any HandlerService)
HandlerServicepublic void setInterceptorService(any interceptorService)
interceptorServicepublic void setLoaderService(any LoaderService)
LoaderServicepublic void setLogBox(LogBox logBox='')
logBox - The logBox instancepublic void setLogger(Logger logger)
loggerpublic void setModuleService(any ModuleService)
ModuleServicePublic void setNextEvent([string event='[runtime expression]'], [string queryString=''], [boolean addToken='false'], [string persist=''], [struct persistStruct='[runtime expression]'], [boolean ssl='false'], [string baseURL=''], [boolean postProcessExempt='false'], [string URL], [string URI], [numeric statusCode='0'])
event - The name of the event to run, if not passed, then it will use the default event found in your configuration file.queryString - The query string to append, if needed. If in SES mode it will be translated to convention name value pairsaddToken - Wether to add the tokens or not. Default is falsepersist - What request collection keys to persist in flash rampersistStruct - A structure key-value pairs to persist in flash ram.ssl - Whether to relocate in SSL or notbaseURL - Use this baseURL instead of the index.cfm that is used by default. You can use this for ssl or any full base url you would like to use. Ex: https://mysite.com/index.cfmpostProcessExempt - Do not fire the postProcess interceptorsURL - The full URL you would like to relocate to instead of an event: ex: URL='http://www.google.com'URI - The relative URI you would like to relocate to instead of an event: ex: URI='/mypath/awesome/here'statusCode - The status code to use in the relocationpublic void setPluginService(Any PluginService)
PluginServicepublic void setRequestService(any RequestService)
RequestServicePublic void setSetting([string name], [any value])
name - The name of the settingvalue - The value of the setting (Can be simple or complex)Public boolean settingExists([string name], [boolean FWSetting='false'])
name - Name of the setting to find.FWSetting - Boolean Flag. If true, it will retrieve from the fwSettingsStruct else from the configStruct. Default is false.private void throwInvalidHTTP(string description)
description - The exception descriptionprivate boolean validateAction(string action='', [string inclusion=''], [string exclusion=''])
action - The action to checkinclusion - inclusion listexclusion - exclusion list
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||