1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.6.0_21) on Wed Nov 24 12:17:18 GMT 2010 -->
\r
10 <META NAME="date" CONTENT="2010-11-24">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 if (location.href.indexOf('is-external=true') == -1) {
\r
18 parent.document.title="Jws2Client";
\r
27 <BODY BGCOLOR="white" onload="windowTitle();">
\r
31 <!-- ========= START OF TOP NAVBAR ======= -->
\r
32 <A NAME="navbar_top"><!-- --></A>
\r
33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
\r
34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
37 <A NAME="navbar_top_firstrow"><!-- --></A>
\r
38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
39 <TR ALIGN="center" VALIGN="top">
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Jws2Client.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
58 PREV CLASS
\r
59 <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client"><B>NEXT CLASS</B></A></FONT></TD>
\r
60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
61 <A HREF="../../../index.html?compbio/ws/client/Jws2Client.html" target="_top"><B>FRAMES</B></A>
\r
62 <A HREF="Jws2Client.html" target="_top"><B>NO FRAMES</B></A>
\r
63 <SCRIPT type="text/javascript">
\r
66 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
71 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
79 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
81 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
84 <A NAME="skip-navbar_top"></A>
\r
85 <!-- ========= END OF TOP NAVBAR ========= -->
\r
88 <!-- ======== START OF CLASS DATA ======== -->
\r
91 compbio.ws.client</FONT>
\r
93 Class Jws2Client</H2>
\r
95 <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
96 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>compbio.ws.client.Jws2Client</B>
\r
100 <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
104 A command line client for JAva Bioinformatics Analysis Web Services
\r
109 <DT><B>Version:</B></DT>
\r
111 <DT><B>Author:</B></DT>
\r
118 <!-- ========== METHOD SUMMARY =========== -->
\r
120 <A NAME="method_summary"><!-- --></A>
\r
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
123 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
124 <B>Method Summary</B></FONT></TH>
\r
126 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
127 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
129 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
\r
130 <TR ALIGN="right" VALIGN="">
\r
131 <TD NOWRAP><FONT SIZE="-1">
\r
132 <CODE><T> <A HREF="../../../compbio/data/msa/MsaWS.html" title="interface in compbio.data.msa">MsaWS</A><T></CODE></FONT></TD>
\r
135 </CODE></FONT></TD>
\r
136 <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
137 <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service)</CODE>
\r
140 Connects to a web service by the host and the service name</TD>
\r
142 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
144 <CODE>static <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></CODE></FONT></TD>
\r
145 <TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#getHost(java.lang.String[])">getHost</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>[] cmd)</CODE>
\r
148 Extracts host name from the command line</TD>
\r
150 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
152 <CODE>static <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></CODE></FONT></TD>
\r
153 <TD><CODE><B><A HREF="../../../compbio/ws/client/Jws2Client.html#getServiceName(java.lang.String[])">getServiceName</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>[] cmd)</CODE>
\r
156 Extracts service name from the command line</TD>
\r
158 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
159 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
160 <CODE>static void</CODE></FONT></TD>
\r
161 <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
164 Starts command line client, if no parameter are supported print help.</TD>
\r
166 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
168 <CODE>static boolean</CODE></FONT></TD>
\r
169 <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
172 Attempt to construct the URL object from the string</TD>
\r
175 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
\r
176 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
177 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
178 <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
180 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
181 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <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#finalize()" title="class or interface in java.lang">finalize</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
187 <!-- ============ METHOD DETAIL ========== -->
\r
189 <A NAME="method_detail"><!-- --></A>
\r
190 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
191 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
192 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
193 <B>Method Detail</B></FONT></TH>
\r
197 <A NAME="validURL(java.lang.String)"><!-- --></A><H3>
\r
200 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
202 <DD>Attempt to construct the URL object from the string
\r
205 <DT><B>Parameters:</B><DD><CODE>urlstr</CODE> -
\r
206 <DT><B>Returns:</B><DD>true if it succeed false otherwise</DL>
\r
211 <A NAME="getServiceName(java.lang.String[])"><!-- --></A><H3>
\r
212 getServiceName</H3>
\r
214 public static <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> <B>getServiceName</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>[] cmd)</PRE>
\r
216 <DD>Extracts service name from the command line
\r
219 <DT><B>Parameters:</B><DD><CODE>cmd</CODE> - command line options
\r
220 <DT><B>Returns:</B><DD>service name or null if it is not defined</DL>
\r
225 <A NAME="getHost(java.lang.String[])"><!-- --></A><H3>
\r
228 public static <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> <B>getHost</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>[] cmd)</PRE>
\r
230 <DD>Extracts host name from the command line
\r
233 <DT><B>Parameters:</B><DD><CODE>cmd</CODE> - command line options
\r
234 <DT><B>Returns:</B><DD>host name or null if it is not defined</DL>
\r
239 <A NAME="connect(java.lang.String, compbio.ws.client.Services)"><!-- --></A><H3>
\r
242 public static <T> <A HREF="../../../compbio/data/msa/MsaWS.html" title="interface in compbio.data.msa">MsaWS</A><T> <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
243 <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client">Services</A> service)
\r
244 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></PRE>
\r
246 <DD>Connects to a web service by the host and the service name
\r
249 <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
250 <DT><B>Returns:</B><DD>MsaWS<T>
\r
252 <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
257 <A NAME="main(java.lang.String[])"><!-- --></A><H3>
\r
260 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
262 <DD>Starts command line client, if no parameter are supported print help. Two
263 parameters are required for successfull call the JWS2 host name and a
267 <DT><B>Parameters:</B><DD><CODE>args</CODE> - Usage: <Class or Jar file name> -h=host_and_context
268 -s=serviceName ACTION [OPTIONS]
270 -h=<host_and_context> - a full URL to the JWS2 web server
271 including context path e.g. http://10.31.1.159:8080/ws
273 -s=<ServiceName> - one of [MafftWS, MuscleWS, ClustalWS,
274 TcoffeeWS, ProbconsWS] ACTIONS:
276 -i=<inputFile> - full path to fasta formatted sequence file,
277 from which to align sequences
279 -parameters - lists parameters supported by web service
281 -presets - lists presets supported by web service
283 -limits - lists web services limits Please note that if input
284 file is specified other actions are ignored
286 OPTIONS: (only for use with -i action):
288 -r=<presetName> - name of the preset to use
290 -o=<outputFile> - full path to the file where to write an
291 alignment -f=<parameterInputFile> - the name of the file with
292 the list of parameters to use. Please note that -r and -f
293 options cannot be used together. Alignment is done with either
294 preset or a parameters from the file, but not both!</DL>
\r
297 <!-- ========= END OF CLASS DATA ========= -->
\r
301 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
302 <A NAME="navbar_bottom"><!-- --></A>
\r
303 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
\r
304 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
306 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
307 <A NAME="navbar_bottom_firstrow"><!-- --></A>
\r
308 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
309 <TR ALIGN="center" VALIGN="top">
\r
310 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
311 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
312 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
313 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Jws2Client.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
314 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
315 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
316 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
317 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
321 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
327 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
328 PREV CLASS
\r
329 <A HREF="../../../compbio/ws/client/Services.html" title="enum in compbio.ws.client"><B>NEXT CLASS</B></A></FONT></TD>
\r
330 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
331 <A HREF="../../../index.html?compbio/ws/client/Jws2Client.html" target="_top"><B>FRAMES</B></A>
\r
332 <A HREF="Jws2Client.html" target="_top"><B>NO FRAMES</B></A>
\r
333 <SCRIPT type="text/javascript">
\r
336 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
341 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
348 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
349 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
350 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
351 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
354 <A NAME="skip-navbar_bottom"></A>
\r
355 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r