X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Fdm_javadoc%2Fcompbio%2Fws%2Fclient%2FJws2Client.html;h=c94a02b5b4a1567ee38d0bb7b82afb2f3b37f1cf;hb=da8c820a7fb2edecb190589f3dc9c362e57a2f24;hp=85d990f14f94aadd5f3b7ed4166a1b3a2977b772;hpb=b413eee53fa3cc22a6bd4e03c9ac64bf26b7c834;p=jabaws.git diff --git a/website/dm_javadoc/compbio/ws/client/Jws2Client.html b/website/dm_javadoc/compbio/ws/client/Jws2Client.html index 85d990f..c94a02b 100644 --- a/website/dm_javadoc/compbio/ws/client/Jws2Client.html +++ b/website/dm_javadoc/compbio/ws/client/Jws2Client.html @@ -2,12 +2,12 @@ - + Jws2Client - + @@ -55,8 +55,8 @@ function windowTitle() - PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -92,12 +92,12 @@ compbio.ws.client
Class Jws2Client
-java.lang.Object
+java.lang.Object
   extended by compbio.ws.client.Jws2Client
 

-
public class Jws2Client
extends Object
+
public class Jws2Client
extends java.lang.Object

@@ -125,48 +125,52 @@ A command line client for JAva Bioinformatics Analysis Web Services -static - - - - -
-<T> MsaWS<T>
-
-connect(String host, +static JABAService +connect(java.lang.String host, Services service)
-          Connects to a web service by the host and the service name +          Connects to a web service by the host and the service name web service + type -static String -getHost(String[] cmd) +static RegistryWS +connectToRegistry(java.lang.String host)
-          Extracts host name from the command line +          Get a connection of JABAWS registry -static String -getServiceName(String[] cmd) +static java.util.Set<Services> +getServices(java.lang.String hostname)
-          Extracts service name from the command line +            static void -main(String[] args) +main(java.lang.String[] args)
          Starts command line client, if no parameter are supported print help. +static void +testService(java.lang.String hostname, + Services service, + java.io.PrintWriter writer) + +
+          Asks registry to test the service on the host hostname + + + static boolean -validURL(String urlstr) +validURL(java.lang.String urlstr)
          Attempt to construct the URL object from the string @@ -175,10 +179,10 @@ A command line client for JAva Bioinformatics Analysis Web Services   - + - +
Methods inherited from class java.lang.ObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  @@ -197,7 +201,7 @@ A command line client for JAva Bioinformatics Analysis Web Services

validURL

-public static boolean validURL(String urlstr)
+public static boolean validURL(java.lang.String urlstr)
Attempt to construct the URL object from the string

@@ -208,30 +212,38 @@ public static boolean validURL(

-getServiceName

+

+testService

-public static String getServiceName(String[] cmd)
+public static void testService(java.lang.String hostname, + Services service, + java.io.PrintWriter writer) + throws java.net.ConnectException, + javax.xml.ws.WebServiceException
-
Extracts service name from the command line +
Asks registry to test the service on the host hostname

-
Parameters:
cmd - command line options -
Returns:
service name or null if it is not defined
+
Parameters:
hostname -
service -
writer - +
Throws: +
java.net.ConnectException +
javax.xml.ws.WebServiceException

-

-getHost

+

+getServices

-public static String getHost(String[] cmd)
+public static java.util.Set<Services> getServices(java.lang.String hostname) + throws javax.xml.ws.WebServiceException, + java.net.ConnectException
-
Extracts host name from the command line -

-
Parameters:
cmd - command line options -
Returns:
host name or null if it is not defined
+ +
Throws: +
javax.xml.ws.WebServiceException +
java.net.ConnectException

@@ -239,17 +251,44 @@ public static

connect

-public static <T> MsaWS<T> connect(String host,
-                                   Services service)
-                        throws WebServiceException
+public static JABAService connect(java.lang.String host, + Services service) + throws javax.xml.ws.WebServiceException, + java.net.ConnectException +
+
Connects to a web service by the host and the service name web service + type +

+

+
Parameters:
host - the fully qualified name of JABAWS server including JABAWS + context name e.g + http://nanna.cluster.lifesci.dundee.ac.uk:8080/jaba
service - the name of the JABAWS service to connect to +
Returns:
JABAService +
Throws: +
javax.xml.ws.WebServiceException +
java.net.ConnectException - if fails to connect to the service on the host
+
+
+
+ +

+connectToRegistry

+
+public static RegistryWS connectToRegistry(java.lang.String host)
+                                    throws javax.xml.ws.WebServiceException,
+                                           java.net.ConnectException
-
Connects to a web service by the host and the service name +
Get a connection of JABAWS registry

-
Type Parameters:
T - web service type
Parameters:
host -
service - -
Returns:
MsaWS +
Parameters:
host - the fully qualified name of JABAWS server including JABAWS + context name e.g + http://nanna.cluster.lifesci.dundee.ac.uk:8080/jaba +
Returns:
compbio.data.msa.RegistryWS - instance of a RegistryWS web + service
Throws: -
WebServiceException
+
javax.xml.ws.WebServiceException +
java.net.ConnectException

@@ -257,10 +296,10 @@ public static <T>

main

-public static void main(String[] args)
+public static void main(java.lang.String[] args)
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.

@@ -325,8 +364,8 @@ public static void main( - PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES