Generated: Sun Oct 7 15:19:11 BST 2007

org.embl.ebi.SoaplabServer.gowlab
Class RunPlugInExternalImpl

java.lang.Object
  extended by org.embl.ebi.SoaplabServer.gowlab.RunPlugInBaseImpl
      extended by org.embl.ebi.SoaplabServer.gowlab.RunPlugInDefaultImpl
          extended by org.embl.ebi.SoaplabServer.gowlab.RunPlugInExternalImpl
All Implemented Interfaces:
RunPlugIn

public class RunPlugInExternalImpl
extends RunPlugInDefaultImpl

An extension of a default implementation of RunPlugIn interface that invokes an external program to fetch data.

NOT YET IMPLEMENTED!!!

Version:
$Id: RunPlugInExternalImpl.java,v 1.1.1.1 2005/06/15 09:00:19 marsenger Exp $
Author:
Martin Senger

Field Summary
 
Fields inherited from interface org.embl.ebi.SoaplabServer.gowlab.RunPlugIn
DEBUG, METHOD_GET, METHOD_POST, PREFERRED_METHOD, RESULT_NAMES, SERVICE_NAME, XSLT_DIR, XSLT_FILE
 
Constructor Summary
RunPlugInExternalImpl(java.lang.String programName)
           
 
Method Summary
 void fetch(HTTPClient.HTTPConnection con, HTTPClient.URI supplierURI, HTTPClient.NVPair[] formData, HTTPClient.NVPair[] files)
          Fetching data by calling an external program given in the constructor.
 
Methods inherited from class org.embl.ebi.SoaplabServer.gowlab.RunPlugInBaseImpl
query2data, removeHtml, setEventManager, setProperties, setResultManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunPlugInExternalImpl

public RunPlugInExternalImpl(java.lang.String programName)
Method Detail

fetch

public void fetch(HTTPClient.HTTPConnection con,
                  HTTPClient.URI supplierURI,
                  HTTPClient.NVPair[] formData,
                  HTTPClient.NVPair[] files)
Fetching data by calling an external program given in the constructor.

Specified by:
fetch in interface RunPlugIn
Overrides:
fetch in class RunPlugInDefaultImpl
Parameters:
con - is an open connection to a site where to go
formData - are named values representing input data to be sent (usually they correspond to data sent from an HTML form if the page is accessed manually). Parameter may be null.

Sometimes it is expected to send a query string instead of name/value pairs of data. This is simulated by using 'formData' with only one element, whose 'name' part is null. The 'value' part is used as a query string.

files - represents files to be uploaded (together with the 'formData' they consitute full input data set). The data will be sent using multipart/form-data encoding. Each pair represents one file - the name refers to the 'name' attribute to be used in the header of the part, and the value is the actual filename (the file will be read and it's contents put in the body of that part). Parameter may be null.

Generated: Sun Oct 7 15:19:11 BST 2007

Submit a bug or feature
Generated: Sun Oct 7 15:19:11 BST 2007