org.embl.ebi.SoaplabServer.gowlab
Class RunPlugInExternalImpl
java.lang.Object
org.embl.ebi.SoaplabServer.gowlab.RunPlugInBaseImpl
org.embl.ebi.SoaplabServer.gowlab.RunPlugInDefaultImpl
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunPlugInExternalImpl
public RunPlugInExternalImpl(java.lang.String programName)
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 goformData
- 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.
Submit a bug or feature
Generated: Sun Oct 7 15:19:11 BST 2007