net.sf.basedb.ws.client
Class BioAssaySetClient
java.lang.Object
net.sf.basedb.ws.client.AbstractRPCClient
net.sf.basedb.ws.client.BioAssaySetClient
public class BioAssaySetClient
- extends AbstractRPCClient
Web service client for BioAssaySetService in BASE.
BioAssaySetService
- Version:
- 2.5
- Author:
- Martin
Method Summary |
InputStream |
downloadBioAssaySet(int bioAssaySetId,
String format,
String[] reporterFields,
String[] spotFields,
boolean mergeReporters)
Call the service in BioAssaySetService that exports a bioassay set and
then sends it as a file. |
String[] |
getExportFormats()
Calls the BioAssaySetService and gets the available formats to export
a BioAssaySet from BASE in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
private final SessionClient session
BioAssaySetClient
public BioAssaySetClient(SessionClient session)
- Creates new BioAssayClient for a session.
- Parameters:
session
- Active session.
getExportFormats
public String[] getExportFormats()
throws org.apache.axis2.AxisFault
- Calls the BioAssaySetService and gets the available formats to export
a BioAssaySet from BASE in.
- Returns:
- An array with the formats.
- Throws:
org.apache.axis2.AxisFault
- If communication with the service fails.
downloadBioAssaySet
public InputStream downloadBioAssaySet(int bioAssaySetId,
String format,
String[] reporterFields,
String[] spotFields,
boolean mergeReporters)
throws org.apache.axis2.AxisFault,
IOException
- Call the service in BioAssaySetService that exports a bioassay set and
then sends it as a file.
- Parameters:
bioAssaySetId
- Id of the bioAssay set to exportformat
- Export format to use when exporting the bioassay setreporterFields
- Reporter fields to include in the exportspotFields
- Spot fields to include in the exportmergeReporters
- If the reporters should be merged or not.
- Returns:
- An InputStream to read the file data from
- Throws:
org.apache.axis2.AxisFault
- If communication with services fails.
IOException
- If accessing the file files.