railo-context.Component coldbox.system.web.Controller coldbox.system.testing.mock.web.MockController
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com A mock controller used for integration testing via TestBox
Constructor Summary | |
---|---|
init(any appRootPath, [any appKey='cbController'])
Constructor. |
Method Summary | |
---|---|
any
|
setNextEvent([any event='[runtime expression]'], [any queryString=''], [boolean addToken='false'], [any persist=''], [struct persistStruct='[runtime expression]'], [any baseURL=''], [boolean postProcessExempt='false'], [any URL], [any URI], [numeric statusCode='0'])
Set the next event to run and relocate the browser to that event. |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
appRootPath
appKey
Method Detail |
---|
Set the next event to run and relocate the browser to that event. If you are in SES mode, this method will use routing instead. You can also use this method to relocate to an absolute URL or a relative URI
setNextEvent
in class
Controller
event
- The name of the event to relocate to, 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 to the relocation. Default is falsepersist
- What request collection keys to persist in flash RAM automatically for youpersistStruct
- A structure of key-value pairs to persist in flash RAM automatically for youbaseURL
- 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 interceptors, by default it doesURL
- 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 relocation