public class Jws2Client
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
log
Use java.util.Logger instead of log4j logger to reduce the size of the client package
|
Constructor and Description |
---|
Jws2Client(java.lang.String[] cmd)
Connects to the service and do the job as requested, if something goes
wrong reports or/and prints usage help.
|
Modifier and Type | Method and Description |
---|---|
(package private) static <T> Alignment |
align(java.io.File file,
MsaWS<T> msaws,
Preset<T> preset,
java.util.List<Option<T>> customOptions)
Align sequences from the file using MsaWS
|
(package private) static <T> ScoreManager |
analize(java.io.File file,
SequenceAnnotation<T> wsproxy,
Preset<T> preset,
java.util.List<Option<T>> customOptions)
Calculate conservation for sequences loaded from the file
|
(package private) static <T> ScoreManager |
analize(java.util.List<FastaSequence> fastalist,
SequenceAnnotation<T> wsproxy,
Preset<T> preset,
java.util.List<Option<T>> customOptions)
Calculate conservation for sequences loaded from a FASTA record list structure
|
static JABAService |
connect(java.lang.String host,
Services service)
Connects to a web service by the host and the service name web service type
|
static RegistryWS |
connectToRegistry(java.lang.String host)
Get a connection of JABAWS registry
|
private static void |
listAllServices(java.lang.String hostname) |
static void |
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(java.lang.String urlstr)
Attempt to construct the URL object from the string
|
private static final java.util.logging.Logger log
Jws2Client(java.lang.String[] cmd) throws java.io.IOException
T
- web service typecmd
- command line optionsjava.io.IOException
public static boolean validURL(java.lang.String urlstr)
urlstr
- public static JABAService connect(java.lang.String host, Services service) throws javax.xml.ws.WebServiceException, java.net.ConnectException
host
- the fully qualified name of JABAWS server including JABAWS
context name e.g
http://nanna.cluster.lifesci.dundee.ac.uk:8080/jabaservice
- the name of the JABAWS service to connect tojavax.xml.ws.WebServiceException
java.net.ConnectException
- if fails to connect to the service on the hostpublic static RegistryWS connectToRegistry(java.lang.String host) throws javax.xml.ws.WebServiceException, java.net.ConnectException
host
- the fully qualified name of JABAWS server including JABAWS
context name e.g
http://nanna.cluster.lifesci.dundee.ac.uk:8080/jabajavax.xml.ws.WebServiceException
java.net.ConnectException
public static void testService(java.lang.String hostname, Services service, java.io.PrintWriter writer) throws java.net.ConnectException, javax.xml.ws.WebServiceException
hostname
- service
- writer
- java.net.ConnectException
javax.xml.ws.WebServiceException
private static void listAllServices(java.lang.String hostname) throws javax.xml.ws.WebServiceException, java.io.IOException
javax.xml.ws.WebServiceException
java.io.IOException
static <T> ScoreManager analize(java.util.List<FastaSequence> fastalist, SequenceAnnotation<T> wsproxy, Preset<T> preset, java.util.List<Option<T>> customOptions)
fastalist
- the list of FASTA recordswsproxy
- a web service proxypreset
- Preset to use optionalcustomOptions
- the list of optionsUnknownFileFormatException
static <T> ScoreManager analize(java.io.File file, SequenceAnnotation<T> wsproxy, Preset<T> preset, java.util.List<Option<T>> customOptions)
wsproxy
- a web service proxyfile
- the file to read the results frompreset
- Preset to use optionalcustomOptions
- the list of optionsjava.io.IOException
UnknownFileFormatException
static <T> Alignment align(java.io.File file, MsaWS<T> msaws, Preset<T> preset, java.util.List<Option<T>> customOptions)
T
- web service type e.g. Clustalfile
- to write the resulting alignment tomsaws
- MsaWS requiredpreset
- Preset to use optionalcustomOptions
- file which contains new line separated list of optionspublic static void main(java.lang.String[] args)
args
- Usage: