com.allaire.cfx
Interface Request

All Known Implementing Classes:
DebugRequest

public interface Request

Alternative Implementation of Jeremy Allaire's Request Interface


Method Summary
 boolean attributeExists(java.lang.String key)
          checks if attribute with this key exists
 boolean debug()
           
 java.lang.String getAttribute(java.lang.String key)
          returns attribute matching key
 java.lang.String getAttribute(java.lang.String key, java.lang.String defaultValue)
          returns attribute matching key
 java.lang.String[] getAttributeList()
          return all sattribute keys
 int getIntAttribute(java.lang.String key)
          returns attribute as int matching key
 int getIntAttribute(java.lang.String key, int defaultValue)
          returns attribute as int matching key
 Query getQuery()
          return given query
 java.lang.String getSetting(java.lang.String key)
          returns all the settings
 

Method Detail

attributeExists

public boolean attributeExists(java.lang.String key)
checks if attribute with this key exists

Parameters:
key - key to check
Returns:
has key or not

debug

public boolean debug()
Returns:
if tags has set [debug] attribute

getAttribute

public java.lang.String getAttribute(java.lang.String key)
returns attribute matching key

Parameters:
key - key to get
Returns:
value to key

getAttribute

public java.lang.String getAttribute(java.lang.String key,
                                     java.lang.String defaultValue)
returns attribute matching key

Parameters:
key - key to get
defaultValue - return this value if key not exists
Returns:
value to key

getAttributeList

public java.lang.String[] getAttributeList()
return all sattribute keys

Returns:
all keys

getIntAttribute

public int getIntAttribute(java.lang.String key)
                    throws java.lang.NumberFormatException
returns attribute as int matching key

Parameters:
key - key to get
Returns:
value to key
Throws:
java.lang.NumberFormatException

getIntAttribute

public int getIntAttribute(java.lang.String key,
                           int defaultValue)
returns attribute as int matching key

Parameters:
key - key to get
defaultValue - return this value if key not exists
Returns:
value to key

getQuery

public Query getQuery()
return given query

Returns:
return given query

getSetting

public java.lang.String getSetting(java.lang.String key)
returns all the settings

Parameters:
key -
Returns:
settings