|
Generated: Sun Oct 7 15:19:11 BST 2007 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.embl.ebi.SoaplabServer.gowlab.RunPlugInBaseImpl
public abstract class RunPlugInBaseImpl
An abstract implementation of RunPlugIn interface, serving as a "utility" class for those wishing to extend it by a real implementation.
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 | |
---|---|
RunPlugInBaseImpl()
|
Method Summary | |
---|---|
abstract void |
fetch(HTTPClient.HTTPConnection con,
HTTPClient.URI supplierURI,
HTTPClient.NVPair[] formData,
HTTPClient.NVPair[] files)
Must be implemented by sub-classes. |
static HTTPClient.NVPair[] |
query2data(java.lang.String query)
A utility converting a query string (xxx=yyy&kkk=lll) into form-elements data. |
static java.lang.String |
removeHtml(java.lang.String input)
A utility removing HTML tags from 'input'. |
void |
setEventManager(org.embl.ebi.analysis.EventManager newValue)
Set an Event Manager where this instance will report about the fetching. |
void |
setProperties(java.util.Properties newValue)
Set additional properties that can be useful during fetching data. |
void |
setResultManager(org.embl.ebi.analysis.ResultManager newValue)
Set a Result Manager where this instance will store fetched data, and where it will report about a success or failure. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunPlugInBaseImpl()
Method Detail |
---|
public abstract void fetch(HTTPClient.HTTPConnection con, HTTPClient.URI supplierURI, HTTPClient.NVPair[] formData, HTTPClient.NVPair[] files)
fetch
in interface RunPlugIn
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.public void setResultManager(org.embl.ebi.analysis.ResultManager newValue)
RunPlugIn
setResultManager
in interface RunPlugIn
newValue
- to be setpublic void setEventManager(org.embl.ebi.analysis.EventManager newValue)
RunPlugIn
setEventManager
in interface RunPlugIn
newValue
- to be setpublic void setProperties(java.util.Properties newValue)
RunPlugIn
setProperties
in interface RunPlugIn
newValue
- poperties to be setpublic static java.lang.String removeHtml(java.lang.String input)
public static HTTPClient.NVPair[] query2data(java.lang.String query)
|
Generated: Sun Oct 7 15:19:11 BST 2007 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |