use of org.apache.camel.component.salesforce.api.dto.bulk.QueryResultList in project camel by apache.
the class DefaultBulkApiClient method getQueryResultIds.
@Override
public void getQueryResultIds(String jobId, String batchId, final QueryResultIdsCallback callback) {
final Request get = getRequest(HttpMethod.GET, batchResultUrl(jobId, batchId, null));
// make the call and parse the result
doHttpRequest(get, new ClientResponseCallback() {
@Override
public void onResponse(InputStream response, SalesforceException ex) {
QueryResultList value = null;
try {
value = unmarshalResponse(response, get, QueryResultList.class);
} catch (SalesforceException e) {
ex = e;
}
callback.onResponse(value != null ? Collections.unmodifiableList(value.getResult()) : null, ex);
}
});
}
Aggregations