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