com.allaire.cfx
Class DebugResponse

java.lang.Object
  extended by com.allaire.cfx.DebugResponse
All Implemented Interfaces:
Response

public final class DebugResponse
extends Object
implements Response


Constructor Summary
DebugResponse()
           
 
Method Summary
 Query addQuery(String name, String[] columns)
          adds a query to response
 void printQuery(Query query)
          print out a query
 void printResults()
          print out the response
 void setVariable(String key, String value)
          sets a variable to response
 void write(String str)
          write out a String to response
 void writeDebug(String str)
          write out if debug is enabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugResponse

public DebugResponse()
Method Detail

addQuery

public Query addQuery(String name,
                      String[] columns)
Description copied from interface: Response
adds a query to response

Specified by:
addQuery in interface Response
Parameters:
name - name of the new Query
columns - columns of the new Query
Returns:
created query
See Also:
Response.addQuery(java.lang.String, java.lang.String[])

setVariable

public void setVariable(String key,
                        String value)
Description copied from interface: Response
sets a variable to response

Specified by:
setVariable in interface Response
Parameters:
key - key of the variable
value - value of the variable
See Also:
Response.setVariable(java.lang.String, java.lang.String)

write

public void write(String str)
Description copied from interface: Response
write out a String to response

Specified by:
write in interface Response
Parameters:
str - String to write
See Also:
Response.write(java.lang.String)

writeDebug

public void writeDebug(String str)
Description copied from interface: Response
write out if debug is enabled

Specified by:
writeDebug in interface Response
Parameters:
str - String to write
See Also:
Response.writeDebug(java.lang.String)

printResults

public void printResults()
print out the response


printQuery

public void printQuery(Query query)
print out a query

Parameters:
query -


Copyright © 2012 Railo