User Guide

302 Developing Web Applications with ColdFusion
CCFXRequest::Debug
BOOL CCFXRequest::Debug(void)
Checks whether the tag contains the DEBUG attribute. You should use this function to
determine whether or not you need to write debug information for this request. (See
the CCFXRequest::WriteDebug tag for details on writing debug information.)
Returns
TRUE if the tag contains the DEBUG attribute; otherwise, returns FALSE.
Example
The following example checks to see whether the DEBUG attribute is present, and if it is,
it writes a brief debug message:
if ( pRequest->Debug() )
{
pRequest->WriteDebug( "Top secret debug info" ) ;
}
CCFXRequest::GetAttribute
LPCSTR CCFXRequest::GetAttribute(LPCSTR
lpszName
)
Retrieves the value of the passed attribute. Returns an empty string if the attribute
does not exist. (Use CCFXRequest::AttributeExists to test whether an attribute was
passed to the tag.)
Returns the value of the attribute passed to the tag. If no attribute of that name was
passed to the tag, an empty string is returned.
lpszName
Name of the attribute to retrieve (case insensitive).
Example
The following example retrieves an attribute named DESTINATION and writes its value
back to the user:
LPCSTR lpszDestination = pRequest->GetAttribute("DESTINATION") ;
pRequest->Write( "The destination is: " ) ;
pRequest->Write( lpszDestination ) ;
CCFXRequest::GetAttributeList
CCFXStringSet* CCFXRequest::GetAttributeList(void)
Retrieves a list of all attribute names passed to the tag. To retrieve the value of an
individual attribute, you should use CCFXRequest::GetAttribute.
Returns an object of class CCFXStringSet Class that contains a list of all attributes
passed to the tag.