From: Wolfgang M. M. <wol...@us...> - 2004-07-12 16:58:04
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28627/src/org/exist/xmlrpc Modified Files: RpcServer.java RpcAPI.java Log Message: Modified the query method in the XML-RPC interface to take the query as byte[] instead of a string. Index: RpcServer.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc/RpcServer.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** RpcServer.java 5 Jul 2004 20:02:48 -0000 1.40 --- RpcServer.java 12 Jul 2004 16:57:55 -0000 1.41 *************** *** 33,38 **** import java.util.Stack; import java.util.Vector; - import java.util.zip.GZIPInputStream; - import java.util.zip.GZIPOutputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; --- 33,36 ---- *************** *** 819,823 **** * */ ! public String query(User user, byte[] xquery, int howmany, int start, Hashtable parameters) throws EXistException, PermissionDeniedException { --- 817,821 ---- * */ ! public byte[] query(User user, byte[] xquery, int howmany, int start, Hashtable parameters) throws EXistException, PermissionDeniedException { *************** *** 833,837 **** try { result = con.query(user, xqueryStr, howmany, start, parameters); ! return result; } catch (Exception e) { handleException(e); --- 831,835 ---- try { result = con.query(user, xqueryStr, howmany, start, parameters); ! return result.getBytes("UTF-8"); } catch (Exception e) { handleException(e); Index: RpcAPI.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xmlrpc/RpcAPI.java,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** RpcAPI.java 5 Jul 2004 20:02:48 -0000 1.31 --- RpcAPI.java 12 Jul 2004 16:57:55 -0000 1.32 *************** *** 280,284 **** * executeQuery() instead */ ! String query( User user, byte[] xquery, --- 280,284 ---- * executeQuery() instead */ ! byte[] query( User user, byte[] xquery, |