User Guide

Chapter 18: Building Custom CFAPI Tags 281
Request Object
Passed to the processRequest method of the CustomTag interface. Provides methods
for retrieving attributes passed to the tag, including queries, and reading global tag
settings.
Response Object
Passed to the processRequest method of the CustomTag interface. Provides methods
for writing output, generating queries, and setting variables within the calling page.
Methods Used by Request Object
Method Description
attributeExists
Checks if the attribute was passed to this tag
getAttribute
Retrieves the value of the passed attribute
getIntAttribute
Retrieves the value of the passed attribute as an integer
getAttributeList
Retrieves a list of all attributes passed to the tag
getQuery
Retrieves the query that was passed to this tag, if any
getSetting
Retrieves the value of a global custom tag setting
debug
Checks if the tag contains the DEBUG attribute
Methods Used by Response Object
Method Description
write
Outputs text into the calling page
setVariable
Sets a variable in the calling page
addQuery
Adds a query to the calling page
writeDebug
Outputs text into the debug stream