org.opencfml.cfx
Interface Request


public interface Request

Alternative Implementation of Jeremy Allaire's Request Interface


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

Method Detail

attributeExists

boolean attributeExists(String key)
checks if attribute with this key exists

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

debug

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

getAttribute

String getAttribute(String key)
returns attribute matching key

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

getAttribute

String getAttribute(String key,
                    String defaultValue)
returns attribute matching key

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

getAttributeList

String[] getAttributeList()
return all sattribute keys

Returns:
all keys

getIntAttribute

int getIntAttribute(String key)
                    throws NumberFormatException
returns attribute as int matching key

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

getIntAttribute

int getIntAttribute(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

Query getQuery()
return given query

Returns:
return given query

getSetting

String getSetting(String key)
returns all the settings

Parameters:
key -
Returns:
settings


Copyright © 2012 Railo