public abstract interface Request
Interface to a request made to a CustomTag. The interface includes methods for retrieving attributes passed to the tag (including queries) and reading global tag settings.
Returns |
Syntax |
Description |
---|---|---|
boolean |
<ct code_in_table>attributeExists(String name) |
Checks whether the attribute was passed to this tag. |
boolean |
debug() |
Checks whether the tag contains the debug attribute. |
String |
getAttribute(String name) |
Retrieves the value of the passed attribute. |
String[] |
getAttributeList() |
Retrieves a list of attributes passed to the tag. |
int |
<ct code_in_table>getIntAttribute(String name) |
Retrieves the value of the passed attribute as an integer. |
int |
<ct code_in_table>getIntAttribute(String name, int def) |
Retrieves the value of the passed attribute as an integer (returns default if the attribute does not exist or is not a valid number). |
Query |
getQuery() |
Retrieves the query that was passed to this tag. |