<!--NewPage-->\r
<HTML>\r
<HEAD>\r
-<!-- Generated by javadoc (build 1.6.0_21) on Thu Nov 18 15:38:37 GMT 2010 -->\r
+<!-- Generated by javadoc (build 1.6.0_24) on Fri Aug 12 14:32:03 BST 2011 -->\r
<TITLE>\r
Jws2Client\r
</TITLE>\r
\r
-<META NAME="date" CONTENT="2010-11-18">\r
+<META NAME="date" CONTENT="2011-08-12">\r
\r
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">\r
\r
\r
<TR>\r
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
- PREV CLASS \r
- <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client"><B>NEXT CLASS</B></A></FONT></TD>\r
+ <A HREF="../../../compbio/ws/client/IOHelper.html" title="class in compbio.ws.client"><B>PREV CLASS</B></A> \r
+ <A HREF="../../../compbio/ws/client/MetadataHelper.html" title="class in compbio.ws.client"><B>NEXT CLASS</B></A></FONT></TD>\r
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
<A HREF="../../../index.html?compbio/ws/client/Jws2Client.html" target="_top"><B>FRAMES</B></A> \r
<A HREF="Jws2Client.html" target="_top"><B>NO FRAMES</B></A> \r
<BR>\r
Class Jws2Client</H2>\r
<PRE>\r
-java.lang.Object\r
+<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>\r
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>compbio.ws.client.Jws2Client</B>\r
</PRE>\r
<HR>\r
<DL>\r
-<DT><PRE>public class <B>Jws2Client</B><DT>extends java.lang.Object</DL>\r
+<DT><PRE>public class <B>Jws2Client</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>\r
</PRE>\r
\r
<P>\r
</TR>\r
<TR BGCOLOR="white" CLASS="TableRowColor">\r
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
-<CODE>static\r
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">\r
-<TR ALIGN="right" VALIGN="">\r
-<TD NOWRAP><FONT SIZE="-1">\r
-<CODE><T> <A HREF="../../../compbio/data/msa/MsaWS.html" title="interface in compbio.data.msa">MsaWS</A><T></CODE></FONT></TD>\r
-</TR>\r
-</TABLE>\r
-</CODE></FONT></TD>\r
-<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#connect(java.lang.String, compbio.ws.client.Services)">connect</A></B>(java.lang.String host,\r
+<CODE>static <A HREF="../../../compbio/data/msa/JABAService.html" title="interface in compbio.data.msa">JABAService</A></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#connect(java.lang.String, compbio.ws.client.Services)">connect</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host,\r
<A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service)</CODE>\r
\r
<BR>\r
- Connects to a web service by the host and the service name</TD>\r
+ Connects to a web service by the host and the service name web service
+ type</TD>\r
</TR>\r
<TR BGCOLOR="white" CLASS="TableRowColor">\r
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
-<CODE>static java.lang.String</CODE></FONT></TD>\r
-<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#getHost(java.lang.String[])">getHost</A></B>(java.lang.String[] cmd)</CODE>\r
+<CODE>static <A HREF="../../../compbio/data/msa/RegistryWS.html" title="interface in compbio.data.msa">RegistryWS</A></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#connectToRegistry(java.lang.String)">connectToRegistry</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host)</CODE>\r
\r
<BR>\r
- Extracts host name from the command line</TD>\r
+ Get a connection of JABAWS registry</TD>\r
</TR>\r
<TR BGCOLOR="white" CLASS="TableRowColor">\r
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
-<CODE>static java.lang.String</CODE></FONT></TD>\r
-<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#getServiceName(java.lang.String[])">getServiceName</A></B>(java.lang.String[] cmd)</CODE>\r
+<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A>></CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#getServices(java.lang.String)">getServices</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hostname)</CODE>\r
\r
<BR>\r
- Extracts service name from the command line</TD>\r
+ </TD>\r
</TR>\r
<TR BGCOLOR="white" CLASS="TableRowColor">\r
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
<CODE>static void</CODE></FONT></TD>\r
-<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>\r
+<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#main(java.lang.String[])">main</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] args)</CODE>\r
\r
<BR>\r
Starts command line client, if no parameter are supported print help.</TD>\r
</TR>\r
<TR BGCOLOR="white" CLASS="TableRowColor">\r
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
+<CODE>static void</CODE></FONT></TD>\r
+<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#testService(java.lang.String, compbio.ws.client.Services, java.io.PrintWriter)">testService</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hostname,\r
+ <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service,\r
+ <A HREF="http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A> writer)</CODE>\r
+\r
+<BR>\r
+ Asks registry to test the service on the host hostname</TD>\r
+</TR>\r
+<TR BGCOLOR="white" CLASS="TableRowColor">\r
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
<CODE>static boolean</CODE></FONT></TD>\r
-<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#validURL(java.lang.String)">validURL</A></B>(java.lang.String urlstr)</CODE>\r
+<TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#validURL(java.lang.String)">validURL</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> urlstr)</CODE>\r
\r
<BR>\r
Attempt to construct the URL object from the string</TD>\r
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
-<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>\r
+<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>\r
</TR>\r
<TR BGCOLOR="white" CLASS="TableRowColor">\r
-<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>\r
+<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>\r
</TR>\r
</TABLE>\r
\r
<A NAME="validURL(java.lang.String)"><!-- --></A><H3>\r
validURL</H3>\r
<PRE>\r
-public static boolean <B>validURL</B>(java.lang.String urlstr)</PRE>\r
+public static boolean <B>validURL</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> urlstr)</PRE>\r
<DL>\r
<DD>Attempt to construct the URL object from the string\r
<P>\r
</DL>\r
<HR>\r
\r
-<A NAME="getServiceName(java.lang.String[])"><!-- --></A><H3>\r
-getServiceName</H3>\r
+<A NAME="testService(java.lang.String, compbio.ws.client.Services, java.io.PrintWriter)"><!-- --></A><H3>\r
+testService</H3>\r
<PRE>\r
-public static java.lang.String <B>getServiceName</B>(java.lang.String[] cmd)</PRE>\r
+public static void <B>testService</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hostname,\r
+ <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service,\r
+ <A HREF="http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A> writer)\r
+ throws <A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A>,\r
+ <A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A></PRE>\r
<DL>\r
-<DD>Extracts service name from the command line\r
+<DD>Asks registry to test the service on the host hostname\r
<P>\r
<DD><DL>\r
-<DT><B>Parameters:</B><DD><CODE>cmd</CODE> - command line options\r
-<DT><B>Returns:</B><DD>service name or null if it is not defined</DL>\r
+<DT><B>Parameters:</B><DD><CODE>hostname</CODE> - <DD><CODE>service</CODE> - <DD><CODE>writer</CODE> - \r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></CODE>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A></CODE></DL>\r
</DD>\r
</DL>\r
<HR>\r
\r
-<A NAME="getHost(java.lang.String[])"><!-- --></A><H3>\r
-getHost</H3>\r
+<A NAME="getServices(java.lang.String)"><!-- --></A><H3>\r
+getServices</H3>\r
<PRE>\r
-public static java.lang.String <B>getHost</B>(java.lang.String[] cmd)</PRE>\r
+public static <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A>> <B>getServices</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> hostname)\r
+ throws <A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A>,\r
+ <A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></PRE>\r
<DL>\r
-<DD>Extracts host name from the command line\r
-<P>\r
<DD><DL>\r
-<DT><B>Parameters:</B><DD><CODE>cmd</CODE> - command line options\r
-<DT><B>Returns:</B><DD>host name or null if it is not defined</DL>\r
+\r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A></CODE>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></CODE></DL>\r
</DD>\r
</DL>\r
<HR>\r
<A NAME="connect(java.lang.String, compbio.ws.client.Services)"><!-- --></A><H3>\r
connect</H3>\r
<PRE>\r
-public static <T> <A HREF="../../../compbio/data/msa/MsaWS.html" title="interface in compbio.data.msa">MsaWS</A><T> <B>connect</B>(java.lang.String host,\r
- <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service)\r
- throws javax.xml.ws.WebServiceException</PRE>\r
+public static <A HREF="../../../compbio/data/msa/JABAService.html" title="interface in compbio.data.msa">JABAService</A> <B>connect</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host,\r
+ <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service)\r
+ throws <A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A>,\r
+ <A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></PRE>\r
+<DL>\r
+<DD>Connects to a web service by the host and the service name web service
+ type\r
+<P>\r
+<DD><DL>\r
+<DT><B>Parameters:</B><DD><CODE>host</CODE> - the fully qualified name of JABAWS server including JABAWS
+ context name e.g
+ http://nanna.cluster.lifesci.dundee.ac.uk:8080/jaba<DD><CODE>service</CODE> - the name of the JABAWS service to connect to\r
+<DT><B>Returns:</B><DD>JABAService<T>\r
+<DT><B>Throws:</B>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A></CODE>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></CODE> - if fails to connect to the service on the host</DL>\r
+</DD>\r
+</DL>\r
+<HR>\r
+\r
+<A NAME="connectToRegistry(java.lang.String)"><!-- --></A><H3>\r
+connectToRegistry</H3>\r
+<PRE>\r
+public static <A HREF="../../../compbio/data/msa/RegistryWS.html" title="interface in compbio.data.msa">RegistryWS</A> <B>connectToRegistry</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> host)\r
+ throws <A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A>,\r
+ <A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></PRE>\r
<DL>\r
-<DD>Connects to a web service by the host and the service name\r
+<DD>Get a connection of JABAWS registry\r
<P>\r
<DD><DL>\r
-<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - web service type<DT><B>Parameters:</B><DD><CODE>host</CODE> - <DD><CODE>service</CODE> - \r
-<DT><B>Returns:</B><DD>MsaWS<T>\r
+<DT><B>Parameters:</B><DD><CODE>host</CODE> - the fully qualified name of JABAWS server including JABAWS
+ context name e.g
+ http://nanna.cluster.lifesci.dundee.ac.uk:8080/jaba\r
+<DT><B>Returns:</B><DD>compbio.data.msa.RegistryWS - instance of a RegistryWS web
+ service\r
<DT><B>Throws:</B>\r
-<DD><CODE>javax.xml.ws.WebServiceException</CODE></DL>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/xml/ws/WebServiceException.html?is-external=true" title="class or interface in javax.xml.ws">WebServiceException</A></CODE>\r
+<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/net/ConnectException.html?is-external=true" title="class or interface in java.net">ConnectException</A></CODE></DL>\r
</DD>\r
</DL>\r
<HR>\r
<A NAME="main(java.lang.String[])"><!-- --></A><H3>\r
main</H3>\r
<PRE>\r
-public static void <B>main</B>(java.lang.String[] args)</PRE>\r
+public static void <B>main</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] args)</PRE>\r
<DL>\r
<DD>Starts command line client, if no parameter are supported print help. Two
- parameters are required for successfull call the JWS2 host name and a
+ parameters are required for successful call the JWS2 host name and a
service name.\r
<P>\r
<DD><DL>\r
\r
<TR>\r
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
- PREV CLASS \r
- <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client"><B>NEXT CLASS</B></A></FONT></TD>\r
+ <A HREF="../../../compbio/ws/client/IOHelper.html" title="class in compbio.ws.client"><B>PREV CLASS</B></A> \r
+ <A HREF="../../../compbio/ws/client/MetadataHelper.html" title="class in compbio.ws.client"><B>NEXT CLASS</B></A></FONT></TD>\r
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
<A HREF="../../../index.html?compbio/ws/client/Jws2Client.html" target="_top"><B>FRAMES</B></A> \r
<A HREF="Jws2Client.html" target="_top"><B>NO FRAMES</B></A> \r