com.allaire.cfx
Class DebugRequest

java.lang.Object
  extended by com.allaire.cfx.DebugRequest
All Implemented Interfaces:
Request

public class DebugRequest
extends Object
implements Request

Implementation of the Debug Request


Constructor Summary
DebugRequest(Hashtable attributes)
          constructor of the class
DebugRequest(Hashtable attributes, Query query)
          constructor of the class
DebugRequest(Hashtable attributes, Query query, Hashtable settings)
          constructor of the class
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugRequest

public DebugRequest(Hashtable attributes)
constructor of the class

Parameters:
attributes -

DebugRequest

public DebugRequest(Hashtable attributes,
                    Query query)
constructor of the class

Parameters:
attributes -
query -

DebugRequest

public DebugRequest(Hashtable attributes,
                    Query query,
                    Hashtable settings)
constructor of the class

Parameters:
attributes -
query -
settings -
Method Detail

attributeExists

public boolean attributeExists(String key)
Description copied from interface: Request
checks if attribute with this key exists

Specified by:
attributeExists in interface Request
Parameters:
key - key to check
Returns:
has key or not
See Also:
Request.attributeExists(java.lang.String)

debug

public boolean debug()
Specified by:
debug in interface Request
Returns:
if tags has set [debug] attribute
See Also:
Request.debug()

getAttribute

public String getAttribute(String key,
                           String defaultValue)
Description copied from interface: Request
returns attribute matching key

Specified by:
getAttribute in interface Request
Parameters:
key - key to get
defaultValue - return this value if key not exists
Returns:
value to key
See Also:
Request.getAttribute(java.lang.String, java.lang.String)

getAttribute

public String getAttribute(String key)
Description copied from interface: Request
returns attribute matching key

Specified by:
getAttribute in interface Request
Parameters:
key - key to get
Returns:
value to key
See Also:
Request.getAttribute(java.lang.String)

getAttributeList

public String[] getAttributeList()
Description copied from interface: Request
return all sattribute keys

Specified by:
getAttributeList in interface Request
Returns:
all keys
See Also:
Request.getAttributeList()

getIntAttribute

public int getIntAttribute(String key,
                           int defaultValue)
Description copied from interface: Request
returns attribute as int matching key

Specified by:
getIntAttribute in interface Request
Parameters:
key - key to get
defaultValue - return this value if key not exists
Returns:
value to key
See Also:
Request.getIntAttribute(java.lang.String, int)

getIntAttribute

public int getIntAttribute(String key)
                    throws NumberFormatException
Description copied from interface: Request
returns attribute as int matching key

Specified by:
getIntAttribute in interface Request
Parameters:
key - key to get
Returns:
value to key
Throws:
NumberFormatException
See Also:
Request.getIntAttribute(java.lang.String)

getQuery

public Query getQuery()
Description copied from interface: Request
return given query

Specified by:
getQuery in interface Request
Returns:
return given query
See Also:
Request.getQuery()

getSetting

public String getSetting(String key)
Description copied from interface: Request
returns all the settings

Specified by:
getSetting in interface Request
Returns:
settings
See Also:
Request.getSetting(java.lang.String)


Copyright © 2012 Railo