public interface ReportDownloaderInterface
| Modifier and Type | Method and Description |
|---|---|
ReportDownloadResponse |
downloadReport(ReportDefinition reportDefinition)
Downloads a report and returns a ReportDownloadResponse with the results.
|
ReportDownloadResponse |
downloadReport(String reportQuery,
DownloadFormat format)
Downloads a report query (AWQL) and returns a ReportDownloadResponse with the results.
|
int |
getReportDownloadTimeout()
Returns the reportDownloadTimeout in milliseconds.
|
void |
setReportDownloadTimeout(int reportDownloadTimeout)
Sets the timeout for both CONNECT and READ to the specified value.
|
ReportDownloadResponse downloadReport(ReportDefinition reportDefinition) throws ReportException, ReportDownloadResponseException
reportDefinition - to download a report for.ReportDownloadResponse If the HTTP request completes successfully.ReportException - If we don't receive a response from the server.ReportDownloadResponseException - If the server indicates a problem with the request.ReportDownloadResponse downloadReport(String reportQuery, DownloadFormat format) throws ReportException, ReportDownloadResponseException
reportQuery - to download a report for.format - Format to download the report as. CSV,ReportDownloadResponse If the HTTP request completes successfully.ReportException - If there is any issue making HTTP request with server.ReportDownloadResponseException - If the server indicates a problem with the request.int getReportDownloadTimeout()
void setReportDownloadTimeout(int reportDownloadTimeout)
reportDownloadTimeout - the reportDownloadTimeout to set in millisecondsCopyright © 2020. All Rights Reserved.