The execute() Method
The execute()
method is your way of making requests in to your ColdBox application. It can take the following parameters:
Parameter Name | Parameter Type | Required | Default Value | Description |
event | string |
|
| The event name to execute. e.g., |
route | string |
|
| The route to execute. e.g., |
queryString | string |
|
| Any parameters to be passed as a query string. These will be added to the Request Context for the test request. |
private | boolean |
|
| If |
prePostExempt | boolean |
|
| If |
eventArguments | struct |
|
| A collection of arguments to passthrough to the calling event handler method. |
renderResults | struct |
|
| If true, then it will try to do the normal rendering procedures and store the rendered content in the RC as |
withExceptionHandling | boolean |
|
| If true, then ColdBox will process any errors through the exception handling framework instead of just throwing the error. |
Last updated