[MOBY-guts] biomoby commit
Paul Gordon
gordonp at pub.open-bio.org
Thu Aug 4 16:27:57 UTC 2005
gordonp
Thu Aug 4 12:27:57 EDT 2005
Update of /home/repository/moby/moby-live/Java/docs
In directory pub.open-bio.org:/tmp/cvs-serv8710
Modified Files:
SimpleClient.html
Log Message:
Incremental change
moby-live/Java/docs SimpleClient.html,1.7,1.8
===================================================================
RCS file: /home/repository/moby/moby-live/Java/docs/SimpleClient.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- /home/repository/moby/moby-live/Java/docs/SimpleClient.html 2005/08/04 15:48:35 1.7
+++ /home/repository/moby/moby-live/Java/docs/SimpleClient.html 2005/08/04 16:27:57 1.8
@@ -39,6 +39,7 @@
<li><a href="#APIAnatomy">API Anatomy</a></li>
<li><a href="#helloWorld">Hello World</a></li>
<li><a href="#creatingjMOBYData">Creating jMOBY Data</a></li>
+ <li><a href="#clientServerCommunication">Client/Server Communication (<code>MobyRequest</code>)</a></li>
<li><a href="#manipulatingjMOBYData">Manipulating jMOBY Data</a></li>
<li><a href="#creatingMOBYXML">Creating MOBY XML</a></li>
<li><a href="#parsingMOBYXML">Parsing MOBY XML</a></li>
@@ -210,7 +211,7 @@
or to read the base64 encoded binary image data from a <em>NCBI_Blast_XML_Gif</em>:
<blockquote><code><pre>
-// Assume we have a MOBY NCBI_Blast_XML_Gif in the MobyComposite variable called "blastData"
+// Assume we have a MOBY NCBI_Blast_XML_Gif object in the MobyDataComposite variable called "blastData"
MobyDataBytes encodedImage = (MobyDataBytes) blastData.get("hitGraph");
javax.swing.ImageIcon image = new ImageIcon(encodedImage.getBytes());
</pre></code></blockquote>
@@ -225,6 +226,14 @@
</p>
<hr/>
+<a name="clientServerCommunication"></a>
+<h2>Client/Server Communication (<code>MobyRequest</code>)</h2>
+
+<p>
+We have seen the <code>MobyRequest</code> class in the <a href="#helloWorld">Hello World</a> example -- it
+invokes and sends data to a remote Web service. It can also be used by a service provider to parse an incoming
+request and return the results. <font color="red">More info to come shortly...</font>
+</p>
<a name="manipulatingjMOBYData"></a>
<h2>Manipulating jMOBY data</h2>
@@ -239,7 +248,7 @@
and extract the fields. Suppose we are a PSI-BLAST provider. We accept <em>AminoAcidSequence</em>:
<blockquote><code><pre>
-//...receive data (see last section of this tutorial), a MobyDataInstance called "data"
+// ...receive data, a MobyDataInstance called "data"
if(! data.getDataType().getName().equals("AminoAcidSequence")){
throw new MobyException("Expected an AminoAcidSequence, but instead found " + data.getDataType());
}
@@ -328,7 +337,7 @@
<blockquote><code><pre>
MobyContentInstance queries = MobyDataUtils.fromXMLDocument(System.in);
System.out.println("The document contained " + ((queries.size() == 1) ? "1 query" : (query.size() + " queries")));
-//Use the HashMap functions to retrieve individual queries...
+// Use the HashMap functions to retrieve individual queries...
</pre></code></blockquote>
</p>
@@ -337,7 +346,7 @@
<address><a href="mailto:gordonp at ucalgary.ca">Paul Gordon</a></address>
<!-- Created: Wed Jul 20 11:44:30 MDT 2005 -->
<!-- hhmts start -->
-Last modified: Thu Aug 4 10:38:48 MDT 2005
+Last modified: Thu Aug 4 11:22:27 MDT 2005
<!-- hhmts end -->
</body>
</html>
More information about the MOBY-guts
mailing list