public interface AdHocReportDownloadHelperInterface
Modifier and Type | Field and Description |
---|---|
static Charset |
REPORT_CHARSET
The default Charset for report request and response contents.
|
Modifier and Type | Method and Description |
---|---|
RawReportDownloadResponse |
downloadReport(ReportRequest reportRequest)
Downloads a report and returns a ReportDownloadResponse with the results.
|
ReportDownloadResponse |
downloadReport(ReportRequest reportRequest,
DetailedReportDownloadResponseException.Builder exceptionBuilder)
Convenience method that is equivalent to
handleResponse(downloadReport(reportRequest), exceptionBuilder) |
int |
getReportDownloadTimeout()
Returns the reportDownloadTimeout in milliseconds
|
ReportDownloadResponse |
handleResponse(RawReportDownloadResponse rawResponse,
DetailedReportDownloadResponseException.Builder exceptionBuilder)
Handles a raw report response and translates it into a ReportDownloadResponse.
|
void |
setReportDownloadTimeout(int reportDownloadTimeout)
Sets the reportDownloadTimeout (milliseconds).
|
static final Charset REPORT_CHARSET
ReportDownloadResponse downloadReport(ReportRequest reportRequest, DetailedReportDownloadResponseException.Builder exceptionBuilder) throws ReportException, ReportDownloadResponseException
handleResponse(downloadReport(reportRequest), exceptionBuilder)
reportRequest
- the report request.exceptionBuilder
- the version-specific exception builder a new
ReportDownloadResponse
.ReportException
- if there is an exception while making the HTTP request to the server.ReportDownloadResponseException
- if unable to read the raw response's input stream.NullPointerException
- if any argument is null
.RawReportDownloadResponse downloadReport(ReportRequest reportRequest) throws ReportException
reportRequest
- the report request.ReportException
- if there is an exception while making the HTTP request to the server.ReportDownloadResponse handleResponse(RawReportDownloadResponse rawResponse, DetailedReportDownloadResponseException.Builder exceptionBuilder) throws ReportDownloadResponseException
rawResponse
- the raw response from an API report download request.exceptionBuilder
- the version-specific exception builder.ReportDownloadResponse
.ReportDownloadResponseException
- if unable to read the raw response's input stream.NullPointerException
- if any argument is null
.int getReportDownloadTimeout()
void setReportDownloadTimeout(int reportDownloadTimeout)
Copyright © 2018. All Rights Reserved.