Scope Arguments
event1
Component (coldbox.system.web.context.RequestContext)
Only the functions and data members that are accessible from your location are displayed
this
public
buildLink
Public Function buildLink
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Builds links to events or URL Routes
arguments
labelnamerequiredtypedefaulthint
tofalseanynullThe event or route path you want to create the link to
queryStringfalseanyThe query string to append which can be a regular query string string, or a struct of name-value pairs
translatefalsebooleantrueTranslate between . to / depending on the SES mode on to and queryString arguments. Defaults to true.
sslfalsebooleannullTurn SSl on/off on URL creation, by default is SSL is enabled, we will use it.
baseURLfalseanyIf not using SES, you can use this argument to create your own base url apart from the default of index.cfm. Example: https://mysample.com/index.cfm
return typestring
clearCollection
Public Function clearCollection
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Clears the entire collection
arguments
labelnamerequiredtypedefaulthint
privatefalsebooleanfalseUse public or private request collection
return typeany
clearPrivateCollection
Public Function clearPrivateCollection
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Clears the private collection
arguments
labelnamerequiredtypedefaulthint
return typeany
collectionAppend
Public Function collectionAppend
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Append a structure to the collection, with overwrite or not. Overwrite = false by default
arguments
labelnamerequiredtypedefaulthint
collectiontruestructnullThe collection to incorporate
overwritefalsebooleanfalseOverwrite elements, defaults to false
privatefalsebooleanfalsePrivate or public, defaults public.
return typeany
getCollection
Public Function getCollection
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
I Get a reference or deep copy of the public or private request Collection
arguments
labelnamerequiredtypedefaulthint
deepCopyfalsebooleanfalseDefault is false, gives a reference to the collection. True, creates a deep copy of the collection.
privatefalsebooleanfalseUse public or private request collection
return typestruct
getContext
Public Function getContext (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getController
Public Function getController (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
getCurrentAction
Public Function getCurrentAction
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current action requested in the current event
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentEvent
Public Function getCurrentEvent
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current incoming event
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentHandler
Public Function getCurrentHandler
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current handler requested in the current event
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentLayout
Public Function getCurrentLayout
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current set layout for rendering
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentLayoutModule
Public Function getCurrentLayoutModule
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current set layout's module for rendering
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentModule
Public Function getCurrentModule
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current module name, else returns empty string
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentRoute
Public Function getCurrentRoute
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the current request's route pattern that matched
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentRoutedModule
Public Function getCurrentRoutedModule
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the current routed module that matched the route, if any
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentRoutedNamespace
Public Function getCurrentRoutedNamespace
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the current routed namespace that matched the route, if any
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentRoutedURL
Public Function getCurrentRoutedURL
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the current routed URL that matched the route pattern
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentRouteMeta
Public Function getCurrentRouteMeta
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current routed route's metadata struct, if any
Returns an empty struct if no record was found.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getCurrentRouteName
Public Function getCurrentRouteName
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the current request's routed name
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentRouteRecord
Public Function getCurrentRouteRecord
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the current routed route record in all of its raw glory
Returns an empty struct if no record was found.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getCurrentView
Public Function getCurrentView
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current set view the framework will try to render for this request
arguments
labelnamerequiredtypedefaulthint
return typestring
getCurrentViewArgs
Public Function getCurrentViewArgs
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current set view the framework will try to render for this request
arguments
labelnamerequiredtypedefaulthint
return typestruct
getCurrentViewModule
Public Function getCurrentViewModule
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Gets the current set views's module for rendering
arguments
labelnamerequiredtypedefaulthint
return typestring
getDefaultLayout
Public Function getDefaultLayout (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
getDefaultView
Public Function getDefaultView (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
getEventCacheableEntry
Public Function getEventCacheableEntry
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the event cacheable entry
arguments
labelnamerequiredtypedefaulthint
return typestruct
getEventName
Public Function getEventName (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
getExcept
Public Function getExcept
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Filters the collection or private collection down to all keys except the provided keys.
arguments
labelnamerequiredtypedefaulthint
keystrueanynullA list or array of keys to exclude from the results of the collection or private collection.
privatefalsebooleanfalsePrivate or public, defaults public request collection
return typestruct
getFolderLayouts
Public Function getFolderLayouts (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getFullPath
Public Function getFullPath
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Returns the full relative path to the requested event: does not include protocol and host
arguments
labelnamerequiredtypedefaulthint
return typestring
getFullURL
Public Function getFullURL
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Returns the full url including the protocol, host, mapping, path info, and query string.
Handles SES urls gracefully.
arguments
labelnamerequiredtypedefaulthint
return typestring
getHTMLBaseURL
Public Function getHTMLBaseURL
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the HTML base URL that is used for the HTML <base> tag. This also accounts for SSL or not.
arguments
labelnamerequiredtypedefaulthint
return typestring
getHTTPBasicCredentials
Public Function getHTTPBasicCredentials
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Returns the username and password sent via HTTP basic authentication
arguments
labelnamerequiredtypedefaulthint
return typestruct
getHTTPContent
Public Function getHTTPContent
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the raw HTTP body content with conversions if needed
arguments
labelnamerequiredtypedefaulthint
jsonfalsebooleanfalseTry to return the content as deserialized json
xmlfalsebooleanfalseTry to return the content as an XML object
return typeany
getHTTPHeader
Public Function getHTTPHeader
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get an HTTP header. If the header doesn't exist the default value of empty string is returned.
arguments
labelnamerequiredtypedefaulthint
headertrueanynullThe header to get
defaultValuefalseanyThe default value, if not found
return typeany
getHTTPMethod
Public Function getHTTPMethod
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the HTTP Request Method Type
arguments
labelnamerequiredtypedefaulthint
return typestring
getIsNoExecution
Public Function getIsNoExecution (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeboolean
getMemento
Public Function getMemento
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get a representation of this instance
arguments
labelnamerequiredtypedefaulthint
return typestruct
getModuleEntryPoint
Public Function getModuleEntryPoint
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Convenience method to get a module's inherited entry point URL, blank if not found
arguments
labelnamerequiredtypedefaulthint
modulefalseanyOptional name of the module you want the root for, defaults to the current running module
return typestring
getModuleRoot
Public Function getModuleRoot
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Convenience method to get the current request's module root path. If no module, then returns empty path. You can also get this from the modules settings
arguments
labelnamerequiredtypedefaulthint
modulefalseanyOptional name of the module you want the root for, defaults to the current running module
return typestring
getOnly
Public Function getOnly
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Filters the collection or private collection down to only the provided keys.
arguments
labelnamerequiredtypedefaulthint
keystrueanynullA list or array of keys to bring back from the collection or private collection.
privatefalsebooleanfalsePrivate or public, defaults public request collection
return typestruct
getPrivateCollection
Public Function getPrivateCollection
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
I get a private collection
arguments
labelnamerequiredtypedefaulthint
deepCopyfalsebooleanfalseDefault is false, gives a reference to the collection. True, creates a deep copy of the collection.
return typestruct
getPrivateContext
Public Function getPrivateContext (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getPrivateExcept
Public Function getPrivateExcept
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Filters the private collection down to all keys except the provided keys.
arguments
labelnamerequiredtypedefaulthint
keystrueanynullA list or array of keys to exclude from the results of the private collection.
return typestruct
getPrivateOnly
Public Function getPrivateOnly
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Filters the private collection down to only the provided keys.
arguments
labelnamerequiredtypedefaulthint
keystrueanynullA list or array of keys to bring back from the private collection.
return typestruct
getPrivateSize
Public Function getPrivateSize
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the private collection Size
arguments
labelnamerequiredtypedefaulthint
return typenumeric
getPrivateTrimValue
Public Function getPrivateTrimValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get a trim value from the private request collection.
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
defaultValuefalseanynulldefault value
return typeany
getPrivateValue
Public Function getPrivateValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get a value from the private request collection.
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
defaultValuefalseanynulldefault value
return typeany
getProperties
Public Function getProperties (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getRegisteredLayouts
Public Function getRegisteredLayouts (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getRenderData
Public Function getRenderData
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the renderData structure
arguments
labelnamerequiredtypedefaulthint
return typestruct
getRenderingRegions
Public Function getRenderingRegions (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getResponse
Public Function getResponse
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the response object for the current request. If there is none, then return a new one
The response object lives in `prc.response`
arguments
labelnamerequiredtypedefaulthint
return typeany
getResponseHeaders
Public Function getResponseHeaders (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getRoutedStruct
Public Function getRoutedStruct (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
getSelf
Public Function getSelf
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Returns index.cfm?{eventName}=
arguments
labelnamerequiredtypedefaulthint
return typestring
getSESBaseURL
Public Function getSESBaseURL (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
getSESEnabled
Public Function getSESEnabled (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typeboolean
getSize
Public Function getSize
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the collection Size
arguments
labelnamerequiredtypedefaulthint
privatefalsebooleanfalsePrivate or public, defaults public.
return typenumeric
getTrimValue
Public Function getTrimValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get a value from the request collection and if simple value, I will trim it.
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
defaultValuefalseanynulldefault value
privatefalsebooleanfalsePrivate or public, defaults public.
return typeany
getValue
Public Function getValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get a value from the public or private request collection.
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
defaultValuefalseanynulldefault value
privatefalsebooleanfalsePrivate or public, defaults public.
return typeany
getViewCacheableEntry
Public Function getViewCacheableEntry
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the event cacheable entry
arguments
labelnamerequiredtypedefaulthint
return typestruct
getViewLayouts
Public Function getViewLayouts (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
return typestruct
init
Public Function init
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Constructor
arguments
labelnamerequiredtypedefaulthint
propertiestruestructThe ColdBox application settings
controllertrueanynullAcess to the system controller
return typeany
isAjax
Public Function isAjax
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Determines if in an Ajax call or not by looking at the request headers
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isEventCacheable
Public Function isEventCacheable
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check wether the incoming event has been flagged for caching
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isInvalidHTTPMethod
Public Function isInvalidHTTPMethod
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check if the request was made with an invalid HTTP Method
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isNoRender
Public Function isNoRender
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Is this a no render request
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isProxyRequest
Public Function isProxyRequest
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Is this a coldbox proxy request
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isSES
Public Function isSES
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Verify if SES is enabled or not in the request
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isSSL
Public Function isSSL
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Are we in SSL or not? This method looks at CGI.SERVER_PORT_SECURE for indication
arguments
labelnamerequiredtypedefaulthint
return typeboolean
isViewCacheable
Public Function isViewCacheable
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check wether the incoming view has been flagged for caching
arguments
labelnamerequiredtypedefaulthint
return typeboolean
METHODS
Struct
DELETE
stringDELETE
GET
stringGET
HEAD
stringHEAD
PATCH
stringPATCH
POST
stringPOST
PUT
stringPUT
noExecution
Public Function noExecution
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set that the request will not execute an incoming event. Most likely simulating a servlet call
arguments
labelnamerequiredtypedefaulthint
return typeany
noLayout
Public Function noLayout
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Mark this request to not use a layout for rendering
arguments
labelnamerequiredtypedefaulthint
return typeany
noRender
Public Function noRender
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set the flag that tells the framework not to render, just execute
arguments
labelnamerequiredtypedefaulthint
removefalsebooleanfalseRemove the flag completely
return typeany
overrideEvent
Public Function overrideEvent
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Override the current event in the request collection. This method does not execute the event, it just replaces the event to be executed by the framework's RunEvent() method. This method is usually called from an onRequestStart or onApplicationStart method
arguments
labelnamerequiredtypedefaulthint
eventtrueanynullThe event to override with
return typeany
paramPrivateValue
Public Function paramPrivateValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Just like cfparam, but for the private request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
valuetrueanynullThe value
return typeany
paramValue
Public Function paramValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Just like cfparam, but for the request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
valuetrueanynullThe value
privatefalsebooleanfalsePrivate or public, defaults public.
return typeany
privateCollectionAppend
Public Function privateCollectionAppend
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Append a structure to the collection, with overwrite or not. Overwrite = false by default
arguments
labelnamerequiredtypedefaulthint
collectiontruestructnullThe collection to incorporate
overwritefalsebooleanfalseOverwrite elements, defaults to false
return typeany
privateValueExists
Public Function privateValueExists
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check if a value exists in the private request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
return typeboolean
removeEventCacheableEntry
Public Function removeEventCacheableEntry
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check wether the incoming event has been flagged for caching
arguments
labelnamerequiredtypedefaulthint
return typeany
removePrivateValue
Public Function removePrivateValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
remove a value in the private request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
privatefalsebooleanfalse
return typeany
removeValue
Public Function removeValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
remove a value in the request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
privatefalsebooleanfalsePrivate or public, defaults public.
return typeany
renderData
Public Function renderData
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Use this method to tell the framework to render data for you. The framework will take care of marshalling the data for you
arguments
labelnamerequiredtypedefaulthint
typefalseanyHTMLThe type of data to render. Valid types are JSON, JSONP, JSONT, XML, WDDX, PLAIN/HTML, TEXT, PDF. The deafult is HTML or PLAIN. If an invalid type is sent in, this method will throw an error
datatrueanynullThe data you would like to marshall and return by the framework
contentTypefalseanyThe content type of the data. This will be used in the cfcontent tag: text/html, text/plain, text/xml, text/json, etc. The default value is text/html. However, if you choose JSON this method will choose application/json, if you choose WDDX or XML this method will choose text/xml for you.
encodingfalseanyutf-8The default character encoding to use. The default encoding is utf-8
statusCodefalsenumeric200The HTTP status code to send to the browser. Defaults to 200
statusTextfalseanyExplains the HTTP status code sent to the browser.
locationfalseanyOptional argument used to set the HTTP Location header
jsonCallbackfalseanyOnly needed when using JSONP, this is the callback to add to the JSON packet
jsonQueryFormatfalseanytrueJSON Only: This parameter can be a Boolean value that specifies how to serialize ColdFusion queries or a string with possible values "row", "column", or "struct".
jsonAsTextfalsebooleanfalseIf set to false, defaults content mime-type to application/json, else will change encoding to plain/text
xmlColumnListfalseanyXML Only: Choose which columns to inspect, by default it uses all the columns in the query, if using a query
xmlUseCDATAfalsebooleanfalseXML Only: Use CDATA content for ALL values. The default is false
xmlListDelimiterfalseany,XML Only: The delimiter in the list. Comma by default
xmlRootNamefalseanyXML Only: The name of the initial root element of the XML packet
pdfArgsfalsestructAll the PDF arguments to pass along to the CFDocument tag.
formatsfalseanyThe formats list or array that ColdBox should respond to using the passed in data argument. You can pass any of the valid types (JSON,JSONP,JSONT,XML,WDDX,PLAIN,HTML,TEXT,PDF). For PDF and HTML we will try to render the view by convention based on the incoming event
formatsViewfalseanyThe view that should be used for rendering HTML/PLAIN/PDF. By default ColdBox uses the name of the event as an implicit view
formatsRedirectfalseanyThe arguments that should be passed to relcoate as part of a redirect for the HTML action. If the format is HTML and this struct is not empty, ColdBox will call relcoate with these arguments.
isBinaryfalsebooleanfalseBit that determines if the data being set for rendering is binary or not.
return typeany
route
Public Function route
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Builds links to named routes with or without parameters. If the named route is not found, this method will throw an `InvalidArgumentException`.
If you need a route from a module then append the module address: `@moduleName` or prefix it like in run event calls `moduleName:routenName` in order to find the right route.
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe name of the route
paramsfalsestructThe parameters of the route to replace
sslfalsebooleannullTurn SSL on/off or detect it by default
return typestring
sendFile
Public Function sendFile
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
This method will send a file to the browser or requested HTTP protocol according to arguments.
CF11+ Compatibility
arguments
labelnamerequiredtypedefaulthint
filefalseanyThe absolute path to the file or a binary file to send
namefalseanyThe name to send to the browser via content disposition header. If not provided then the name of the file or a UUID for a binary file will be used
mimeTypefalseanyA valid mime type to use. If not passed, then we will try to use one according to file type
dispositionfalseanyattachmentThe browser content disposition (attachment/inline) header
abortAtEndfalsebooleanfalseIf true, then this method will do a hard abort, we do not recommend this, prefer the event.noRender() for a graceful abort.
extensionfalseanyOnly used for binary files which types are not determined.
deleteFilefalsebooleanfalseDelete the file after it has been streamed to the user. Only used if file is not binary.
return typeany
setContext
Public Function setContext (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
contexttruestructnull
return typeany
setController
Public Function setController (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
controllertrueanynull
return typeany
setDefaultLayout
Public Function setDefaultLayout
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Override the default layout for a request
arguments
labelnamerequiredtypedefaulthint
defaultLayouttrueanynull
return typeany
setDefaultView
Public Function setDefaultView
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Override the default view for a request
arguments
labelnamerequiredtypedefaulthint
defaultViewtrueanynull
return typeany
setEventCacheableEntry
Public Function setEventCacheableEntry
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check wether the incoming event has been flagged for caching
arguments
labelnamerequiredtypedefaulthint
cacheEntrytruestructnullThe md entry for caching
return typeany
setEventName
Public Function setEventName (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
eventNametrueanynull
return typeany
setFolderLayouts
Public Function setFolderLayouts (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
folderLayoutstruestructnull
return typeany
setHTTPHeader
Public Function setHTTPHeader
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set an HTTP Response Header
arguments
labelnamerequiredtypedefaulthint
statusCodefalseanynullthe status code
statusTextfalseanythe status text
namefalseanynullThe header name
valuefalseanyThe header value
return typeany
setIsInvalidHTTPMethod
Public Function setIsInvalidHTTPMethod
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set the invalid http method flag
arguments
labelnamerequiredtypedefaulthint
targetfalsebooleantrue
return typeRequestContext
setIsNoExecution
Public Function setIsNoExecution (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
isNoExecutiontruebooleannull
return typeany
setLayout
Public Function setLayout
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set the layout to override and render. Layouts are pre-defined in the config file. However I can override these settings if needed. Do not append a the cfm extension. Private Request Collection name
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe name of the layout to set
modulefalseanyThe module to use
return typeany
setMemento
Public Function setMemento
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Override the instance
arguments
labelnamerequiredtypedefaulthint
mementotruestructnull
return typeany
setPrivateContext
Public Function setPrivateContext (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
privateContexttruestructnull
return typeany
setPrivateValue
Public Function setPrivateValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set a value in the private request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
valuetrueanynullThe value
return typeany
setProperties
Public Function setProperties (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
propertiestruestructnull
return typeany
setProxyRequest
Public Function setProxyRequest
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set that this is a proxy request
arguments
labelnamerequiredtypedefaulthint
return typeany
setRegisteredLayouts
Public Function setRegisteredLayouts (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
registeredLayoutstruestructnull
return typeany
setRenderingRegions
Public Function setRenderingRegions (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
renderingRegionstruestructnull
return typeany
setResponseHeaders
Public Function setResponseHeaders (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
responseHeaderstruestructnull
return typeany
setRoutedStruct
Public Function setRoutedStruct
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get the routed structure of key-value pairs. What the ses interceptor could match.
arguments
labelnamerequiredtypedefaulthint
routedStructtruestructnull
return typeany
setSESBaseURL
Public Function setSESBaseURL
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set the ses base URL for this request
arguments
labelnamerequiredtypedefaulthint
sesBaseURLtruestringnull
return typeany
setSESEnabled
Public Function setSESEnabled
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Setter for verifying SES mode
arguments
labelnamerequiredtypedefaulthint
flagtruebooleannull
return typeany
setValue
Public Function setValue
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set a value in the request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
valuetrueanynullThe value
privatefalsebooleanfalsePrivate or public, defaults public.
return typeany
setView
Public Function setView
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set the view to render in this request. Private Request Collection Name: currentView, currentLayout
arguments
labelnamerequiredtypedefaulthint
viewfalseanynullThe name of the view to set. If a layout has been defined it will assign it, else if will assign the default layout. No extension please
argsfalsestructAn optional set of arguments that will be available when the view is rendered
layoutfalseanynullYou can override the rendering layout of this setView() call if you want to. Else it defaults to implicit resolution or another override.
modulefalseanyThe explicit module view
noLayoutfalsebooleanfalseBoolean flag, wether the view sent in will be using a layout or not. Default is false. Uses a pre set layout or the default layout.
cachefalsebooleanfalseTrue if you want to cache the rendered view.
cacheTimeoutfalseanyThe cache timeout in minutes
cacheLastAccessTimeoutfalseanyThe last access timeout in minutes
cacheSuffixfalseanyAdd a cache suffix to the view cache entry. Great for multi-domain caching or i18n caching.
cacheProviderfalseanytemplateThe cache provider you want to use for storing the rendered view. By default we use the 'template' cache provider
namefalseanynullThis triggers a rendering region. This will be the unique name in the request for specifying a rendering region, you can then render it by passing the unique name to renderView();
return typeany
setViewCacheableEntry
Public Function setViewCacheableEntry
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Set the view cacheable entry
arguments
labelnamerequiredtypedefaulthint
cacheEntrytruestructnullThe md entry for caching
return typeany
setViewLayouts
Public Function setViewLayouts (generated)
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
arguments
labelnamerequiredtypedefaulthint
viewLayoutstruestructnull
return typeany
STATUS
Struct
Entries: 17
ACCEPTED
number202
BAD_REQUEST
number400
CREATED
number201
EXPECTATION_FAILED
number417
INTERNAL_ERROR
number500
NO_CONTENT
number204
NOT_ACCEPTABLE
number406
NOT_ALLOWED
number405
NOT_AUTHENTICATED
number401
NOT_AUTHORIZED
number403
NOT_FOUND
number404
NOT_IMPLEMENTED
number501
PARTIAL_CONTENT
number206
RESET
number205
SUCCESS
number200
TOO_MANY_REQUESTS
number429
UNPROCESSABLE_ENTITY
number422
STATUS_TEXTS
Struct
Entries: 63
100
stringContinue
101
stringSwitching Protocols
102
stringProcessing
200
stringOK
201
stringCreated
202
stringAccepted
203
stringNon-authoritative Information
204
stringNo Content
205
stringReset Content
206
stringPartial Content
207
stringMulti-Status
208
stringAlready Reported
226
stringIM Used
300
stringMultiple Choices
301
stringMoved Permanently
302
stringFound
303
stringSee Other
304
stringNot Modified
305
stringUse Proxy
307
stringTemporary Redirect
308
stringPermanent Redirect
400
stringBad Request
401
stringUnauthorized
402
stringPayment Required
403
stringForbidden
404
stringNot Found
405
stringMethod Not Allowed
406
stringNot Acceptable
407
stringProxy Authentication Required
408
stringRequest Timeout
409
stringConflict
410
stringGone
411
stringLength Required
412
stringPrecondition Failed
413
stringPayload Too Large
414
stringRequest-URI Too Long
415
stringUnsupported Media Type
416
stringRequested Range Not Satisfiable
417
stringExpectation Failed
418
stringI'm a teapot
421
stringMisdirected Request
422
stringUnprocessable Entity
423
stringLocked
424
stringFailed Dependency
426
stringUpgrade Required
428
stringPrecondition Required
429
stringToo Many Requests
431
stringRequest Header Fields Too Large
444
stringConnection Closed Without Response
451
stringUnavailable For Legal Reasons
499
stringClient Closed Request
500
stringInternal Server Error
501
stringNot Implemented
502
stringBad Gateway
503
stringService Unavailable
504
stringGateway Timeout
505
stringHTTP Version Not Supported
506
stringVariant Also Negotiates
507
stringInsufficient Storage
508
stringLoop Detected
510
stringNot Extended
511
stringNetwork Authentication Required
599
stringNetwork Connect Timeout Error
urlMatches
Public Function urlMatches
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Tests that a given path exists in the currently routed URL.
If the exact flag is passed, the path must match exactly.
Using the `urlMatchesExact` is preferred.
arguments
labelnamerequiredtypedefaulthint
pathtruestringnullThe path to match in the currently routed URL.
exactfalsebooleanfalseFlag to do an exact match instead of a partial match
return typeboolean
urlMatchesExact
Public Function urlMatchesExact
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Tests that a given path matches exactly to the currently routed URL.
arguments
labelnamerequiredtypedefaulthint
pathtruestringnullThe path to match exactly to the currently routed URL.
return typeboolean
valueExists
Public Function valueExists
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Check if a value exists in the request collection
arguments
labelnamerequiredtypedefaulthint
nametrueanynullThe key name
privatefalsebooleanfalsePrivate or public, defaults public.
return typeboolean
private
getFileMimeType
Private Function getFileMimeType
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Get's the file mime type for a given file extension, this is mostly used for file delivery.
If not in the most common, we deliver as a binary octet-stream.
arguments
labelnamerequiredtypedefaulthint
extensiontruestringnullThe extension to assume.
return typeany
renderWithFormats
Private Function renderWithFormats
source: /var/www/clients/client1/web46/web/coldbox/system/web/context/RequestContext.cfc
Render data with formats
arguments
labelnamerequiredtypedefaulthint
return typeany
Properties
context
Struct
event
stringmain.index
privateContext
Struct
_HTTPCONTENT
string
cbox_incomingContextHash
string99914B932BD37A50B983C5E7C90AE93B
WELCOMEMESSAGE
stringWelcome to ColdBox!
controller
Componentcoldbox.system.web.Controller
properties
Empty:null
eventName
stringevent
isNoExecution
booleanfalse
registeredLayouts
Struct
folderLayouts
Struct (ordered)
viewLayouts
Struct (ordered)
defaultLayout
stringMain.cfm
defaultView
string
SESBaseURL
stringhttp://eclass-translator.preising-shop.net/
SESEnabled
booleantrue
routedStruct
Struct
renderingRegions
Struct
responseHeaders
Struct
rc2
Struct
event
stringmain.index
prc3
Struct
_HTTPCONTENT
string
cbox_incomingContextHash
string99914B932BD37A50B983C5E7C90AE93B
WELCOMEMESSAGE
stringWelcome to ColdBox!
Welcome to Coldbox!

Welcome to ColdBox!

6.2.2+1396 (Isaiah 40:29)

Welcome to modern ColdFusion (CFML) development. You can now start building your application with ease, we already did the hard work for you.

Registered Event Handlers

You can click on the following event handlers to execute their default action index()

Registered Modules

Below are your application's loaded modules, click on them to visit them.

Application Test Harness

File/Folder Description
specs Where all your bdd, module, unit and integration tests go
results Where automated test results go
resources Test resources like fixtures, itegrations, etc.
Application.cfc A unique Application.cfc for your testing harness, please spice up as needed.
test.xml A script for executing all application tests via TestBox ANT
runner.cfm A TestBox runner so you can execute your tests.
index.cfm A TestBox browser, so you can browse and execute specs

ColdBox URL Actions

ColdBox can use some very important URL actions to interact with your application. You can also use CommandBox coldbox reinit and reinit from the CLI. You can try them out below:

URL Action Description Execute
?fwreinit=1
?fwreinit={ReinitPassword}
Reinitialize the Application Execute

Customizing your Application

You can now start editing your application and building great ColdBox enabled apps. Important files & locations:

  1. /config/CacheBox.cfc: Your CacheBox Configuration file
  2. /config/ColdBox.cfc: Your application configuration file
  3. /config/Router.cfc: Your URL Router
  4. /config/WireBox.cfc: Your WireBox Binder
  5. /handlers: Your controller event handlers
  6. /interceptors: Global interceptors
  7. /includes: Assets, Helpers, i18n, templates and more.
  8. /layouts:Your application skin layouts
  9. /lib: Where Jar files can be integrated
  10. /models: Your model layer
  11. /modules: Your CommandBox managed modules
  12. /modules_app: Your application modules
  13. /tests: Your BDD testing harness (Just DO IT!!)
  14. /views: Your application views