unitrequestor
Class ReqScanInterface
java.lang.Object
|
+--unitrequestor.ReqScanInterface
- All Implemented Interfaces:
- IUnitRequest
- public class ReqScanInterface
- extends java.lang.Object
- implements IUnitRequest
Title: Example implementation of IUnitRequest (package unitloader)
Example class implementing IUnitRequest to query a set of distributed
BioCASE providers on the world wide web. The code shows how to create
a scan request and its xml representation. Using a parameterized constructor
this example could be used by a web interface for example.
The continueProcessing method implements a logging function only.
- Version:
- 0.8, May 2003
- Author:
- Anton Güntsch, Botanic Garden and Botanical Museum Berlin-Dahlem
Constructor Summary |
ReqScanInterface(java.util.ArrayList providers,
java.lang.String request,
int timeout,
int wait)
Constructor creating a scan request. |
Method Summary |
void |
contProcessing(java.util.List resultList)
This example implementation of contProcessing does some logging only. |
java.util.List |
getIntermediate()
Example method waiting a few seconds and returning intermediate results. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
providers
private java.util.ArrayList providers
request
private java.lang.String request
timeout
private int timeout
wait
private int wait
ReqScanInterface
public ReqScanInterface(java.util.ArrayList providers,
java.lang.String request,
int timeout,
int wait)
- Constructor creating a scan request.
- Parameters:
providers
- list of unit level providers (package unitloader).request
- a BioCASE protroco compliant xml request.timeout
- timeout in milliseconds.wait
- time in millisec. to wait before accessing the resultlist
getIntermediate
public java.util.List getIntermediate()
- Example method waiting a few seconds and returning intermediate results.
- Returns:
- list of response objects (package unitloader).
contProcessing
public void contProcessing(java.util.List resultList)
- This example implementation of contProcessing does some logging only.
- Specified by:
contProcessing
in interface IUnitRequest
- Parameters:
resultList
-