Project

General

Profile

« Previous | Next » 

Revision 5363

Added by berkley almost 14 years ago

implementing getObjects in CrudService.

View differences:

MetacatHandler.java
910 910
     * 
911 911
     * @return
912 912
     */
913
    public void query(String metacatUrl, PrintWriter out, Hashtable<String, String[]>params, 
913
    public MetacatResultSet query(String metacatUrl, Hashtable<String, String[]>params, 
914 914
            String username, String[] groups, String sessionid)
915 915
      throws Exception
916 916
    {
917
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
918
        PrintWriter out = new PrintWriter(baos);
917 919
        handleQuery(out, params, null, username, groups, sessionid);
920
        out.flush();
921
        baos.flush();
922
        //baos.close(); 
923
        //System.out.println("result from query: " + baos.toString());
924
        MetacatResultSet rs = new MetacatResultSet(baos.toString());
925
        return rs;
918 926
    }
919 927
    
920 928
    /**

Also available in: Unified diff