WEB-INF.cftags.component coldbox.system.web.Controller coldbox.system.testing.mock.web.MockController
This is the ColdBox Unit Test Front Controller.
Constructor Summary | |
---|---|
init(string appRootPath, any appKey)
Constructor. |
Method Summary | |
---|---|
void
|
relocate(string url, [boolean addtoken='false'], [boolean postProcessExempt='false'])
Facade for cflocation. |
void
|
setNextEvent([string event='[runtime expression]'], [string queryString=''], [boolean addToken='false'], [string persist=''], [struct persistStruct='[runtime expression]'], [boolean ssl], [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
|
setNextRoute(string route, [string persist=''], [struct persistStruct='[runtime expression]'], [boolean addToken='false'], [boolean ssl='false'], [string queryString=''], [boolean postProcessExempt='false'])
I Set the next ses route to relocate to. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
appRootPath
- The app Root PathappKey
- The application registered application keyMethod Detail |
---|
Facade for cflocation
url
addtoken
postProcessExempt
- Do not fire the postProcess interceptorsI Set the next event to run and relocate the browser to that event.
setNextEvent
in class
Controller
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 not. You need to explicitly say TRUE or FALSE if going out from SSL. If none passed, we look at the even's SES base URL (if in SES mode)baseURL
- 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 relocationI Set the next ses route to relocate to. This method pre-pends the baseURL
route
- The route to relocate to, do not prepend the baseURL or /.persist
- What request collection keys to persist in the relocationpersistStruct
- A structure key-value pairs to persist.addToken
- Wether to add the tokens or not. Default is falsessl
- Whether to relocate in SSL or notqueryString
- The query string to append, if needed.postProcessExempt
- Do not fire the postProcess interceptors