Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.embl.ebi.escience.scufl
Class SoaplabProcessor  view SoaplabProcessor download SoaplabProcessor.java

java.lang.Object
  extended byorg.embl.ebi.escience.scufl.Processor
      extended byorg.embl.ebi.escience.scufl.SoaplabProcessor
All Implemented Interfaces:
java.io.Serializable

public class SoaplabProcessor
extends Processor
implements java.io.Serializable

A processor based on the Soaplab web service around the EMBOSS tools. This processor implementation will contact Soaplab in order to find the list of extant ports at creation time. It is therefore important when creating an instance of this class that the creating thread should be able to make an HTTP connection to the supplied endpoint.


Field Summary
private  java.net.URL endpoint
           
 
Fields inherited from class org.embl.ebi.escience.scufl.Processor
logLevel, ports
 
Constructor Summary
SoaplabProcessor(ScuflModel model, java.lang.String name, java.lang.String endpoint)
          Construct a new processor with the given model and name, delegates to the superclass.
 
Method Summary
 void generatePorts()
          Use the endpoint data to create new ports and attach them to the processor.
 void getDescriptionText()
          Use the endpoint data to set the description field
 java.net.URL getEndpoint()
          Get the URL for this endpoint
(package private)  void setEndpoint(java.lang.String specifier)
          Set the endpoint for this soaplab processor
 
Methods inherited from class org.embl.ebi.escience.scufl.Processor
addPort, fireModelEvent, getBoundInputPorts, getBoundOutputPorts, getDescription, getInputPorts, getLogLevel, getModel, getName, getOutputPorts, getPorts, getRealLogLevel, locatePort, removePort, setDescription, setLogLevel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

endpoint

private java.net.URL endpoint
Constructor Detail

SoaplabProcessor

public SoaplabProcessor(ScuflModel model,
                        java.lang.String name,
                        java.lang.String endpoint)
                 throws ProcessorCreationException,
                        DuplicateProcessorNameException
Construct a new processor with the given model and name, delegates to the superclass.

Method Detail

setEndpoint

void setEndpoint(java.lang.String specifier)
           throws java.net.MalformedURLException,
                  ProcessorCreationException
Set the endpoint for this soaplab processor


getDescriptionText

public void getDescriptionText()
                        throws ProcessorCreationException
Use the endpoint data to set the description field


generatePorts

public void generatePorts()
                   throws ProcessorCreationException,
                          PortCreationException,
                          DuplicatePortNameException
Use the endpoint data to create new ports and attach them to the processor. Interogates Soaplab for names of input and output parameters, and additionally for their syntactic types, as we might as well keep that information while we have it.


getEndpoint

public java.net.URL getEndpoint()
Get the URL for this endpoint