@Override public BatchJobMutateResponse downloadBatchJobMutateResponse( String downloadUrl, int startIndex, int numberResults) throws BatchJobException { try { BatchJobMutateResponse response = deserializer.deserializeBatchJobMutateResults( BatchJobMutateResponse.class, new URL(downloadUrl), startIndex, numberResults); batchJobLogger.logDownload(downloadUrl, response, null); return response; } catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e); } } }
@Override public BatchJobMutateResponse downloadBatchJobMutateResponse( String downloadUrl, int startIndex, int numberResults) throws BatchJobException { try { BatchJobMutateResponse response = deserializer.deserializeBatchJobMutateResults( BatchJobMutateResponse.class, new URL(downloadUrl), startIndex, numberResults); batchJobLogger.logDownload(downloadUrl, response, null); return response; } catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e); } } }
@Override public BatchJobMutateResponse downloadBatchJobMutateResponse( String downloadUrl, int startIndex, int numberResults) throws BatchJobException { try { BatchJobMutateResponse response = deserializer.deserializeBatchJobMutateResults( BatchJobMutateResponse.class, new URL(downloadUrl), startIndex, numberResults); batchJobLogger.logDownload(downloadUrl, response, null); return response; } catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e); } } }
HttpResponse response = httpRequest.execute(); if (response.getHeaders() == null || response.getHeaders().getLocation() == null) { throw new BatchJobException( "Initiate upload failed. Resumable upload URI was not in the response."); throw new BatchJobException("Failed to initiate upload", e);
HttpResponse response = httpRequest.execute(); if (response.getHeaders() == null || response.getHeaders().getLocation() == null) { throw new BatchJobException( "Initiate upload failed. Resumable upload URI was not in the response."); throw new BatchJobException("Failed to initiate upload", e);
} catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e);
} catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e);
} catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e);
} catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e);
} catch (Exception e) { batchJobLogger.logDownload(downloadUrl, null, e); throw new BatchJobException( "Failed to download batch job mutate response from URL: " + downloadUrl, e);
content, effectiveStatus.getTotalContentLength() == 0L, isLastRequest); } catch (IOException e) { throw new BatchJobException("Failed to post-process the request content", e); throw new BatchJobException("Failed response status from batch upload URL.", e); } catch (IOException e) { exception = e; throw new BatchJobException("Problem sending data to batch upload URL.", e); } finally { batchJobLogger.logUpload(
content, effectiveStatus.getTotalContentLength() == 0L, isLastRequest); } catch (IOException e) { throw new BatchJobException("Failed to post-process the request content", e); throw new BatchJobException("Failed response status from batch upload URL.", e); } catch (IOException e) { exception = e; throw new BatchJobException("Problem sending data to batch upload URL.", e); } finally { batchJobLogger.logUpload(