001 package org.opencfml.cfx; 002 003 /** 004 * Alternative Implementation of Jeremy Allaire's Response Interface 005 */ 006 public interface Response { 007 008 /** 009 * adds a query to response 010 * @param name name of the new Query 011 * @param column columns of the new Query 012 * @return created query 013 */ 014 public Query addQuery(String name, String[] column); 015 016 /** 017 * sets a variable to response 018 * @param key key of the variable 019 * @param value value of the variable 020 */ 021 public void setVariable(String key, String value); 022 023 /** 024 * write out a String to response 025 * @param str String to write 026 */ 027 public void write(String str); 028 029 /** 030 * write out if debug is enabled 031 * @param str String to write 032 */ 033 public void writeDebug(String str); 034 035 }