[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Apr 26 15:08:03 UTC 2007


gordonp
Thu Apr 26 11:08:03 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory dev.open-bio.org:/tmp/cvs-serv32767/src/main/org/biomoby/client

Modified Files:
	MobyRequest.java 
Log Message:
Added new setInput() method that takes an array of data instances to populate the request (used by Seahawk for multi-param service calls)
moby-live/Java/src/main/org/biomoby/client MobyRequest.java,1.24,1.25
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java	2007/04/03 02:22:56	1.24
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/MobyRequest.java	2007/04/26 15:08:03	1.25
@@ -192,6 +192,19 @@
     }
 
     /**
+     * Takes the data in the array, with their current articleNames, as input for the service 
+     */
+    public void setInput(MobyDataInstance[] data) throws MobyException{
+	MobyDataJob job = new MobyDataJob();
+	for(MobyDataInstance param: data){
+	    System.err.println("Adding job param " + param.getName());
+	    job.put(param.getName(), param);
+	}
+	inputData = new MobyContentInstance();
+	inputData.put(job);
+    }
+
+    /**
      * Convenience method to run services that take one argument.  If the service
      * requires the input to have a name, it will be automatically assigned.
      */




More information about the MOBY-guts mailing list