@Test(expected = StorageCommunicationException.class) public void testDeleteNonExistingContainers() { template.deleteContainer("abcefg-" + UUID.randomUUID().toString()); }
public void deleteContainer(String containerName) { try { restService.deleteContainer(containerName); } catch (AzureRestCommunicationException e) { throw new StorageCommunicationException(e, "Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } catch (AzureRestResponseHandlingException e) { throw new StorageCommunicationException( e, "Response handling for Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } }
AzureTemplate implements StorageOperations { public void deleteContainer(String containerName) { try { restService.deleteContainer(containerName); } catch (AzureRestCommunicationException e) { throw new StorageCommunicationException(e, "Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } catch (AzureRestResponseHandlingException e) { throw new StorageCommunicationException( e, "Response handling for Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } } }
AzureTemplate implements StorageOperations { public void deleteContainer(String containerName) { try { restService.deleteContainer(containerName); } catch (AzureRestCommunicationException e) { throw new StorageCommunicationException(e, "Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } catch (AzureRestResponseHandlingException e) { throw new StorageCommunicationException( e, "Response handling for Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } } AzureTemplate(final AzureCredentials credentials);  AzureTemplate(final AzureCredentials credentials, String defaultContainerName); }
AzureTemplate implements StorageOperations { public void deleteContainer(String containerName) { try { restService.deleteContainer(containerName); } catch (AzureRestCommunicationException e) { throw new StorageCommunicationException(e, "Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } catch (AzureRestResponseHandlingException e) { throw new StorageCommunicationException( e, "Response handling for Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } } AzureTemplate(final AzureCredentials credentials);  AzureTemplate(final AzureCredentials credentials, String defaultContainerName); ContainerStatus checkContainerStatus(String containerName); void deleteObject(String objectName); void deleteObject(String containerName, String objectName); String createdSignedUrl(String containerName, String objectName, Date expiryDate); List<BlobDetails> listContainerObjectDetails(); List<BlobDetails> listContainerObjectDetails(String containerName); List<String> listContainerNames(); boolean createContainer(String containerName); void deleteContainer(String containerName); String receiveAndSaveToFile(String objectName, File toFile); String receiveAndSaveToFile(String containerName, String objectName, File toFile); InputStream receiveAsInputStream(String objectName); InputStream receiveAsInputStream(String containerName, String objectName); String receiveAsString(String objectName); String receiveAsString(String containerName, String objectName); String send(String objectName, String stringToSend); String send(String containerName, String objectName, String stringToSend); String send(File fileToSend); String send(String containerName, File fileToSend); String send(String containerName, String objectName, File fileToSend); String send(String objectName, InputStream is); String send(String containerName, String objectName, InputStream is); String getDefaultContainerName(); }
AzureTemplate implements StorageOperations { public void deleteContainer(String containerName) { try { restService.deleteContainer(containerName); } catch (AzureRestCommunicationException e) { throw new StorageCommunicationException(e, "Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } catch (AzureRestResponseHandlingException e) { throw new StorageCommunicationException( e, "Response handling for Azure cloud storage request 'delete container' has failed [container: '%s'].", containerName); } } AzureTemplate(final AzureCredentials credentials);  AzureTemplate(final AzureCredentials credentials, String defaultContainerName); ContainerStatus checkContainerStatus(String containerName); void deleteObject(String objectName); void deleteObject(String containerName, String objectName); String createdSignedUrl(String containerName, String objectName, Date expiryDate); List<BlobDetails> listContainerObjectDetails(); List<BlobDetails> listContainerObjectDetails(String containerName); List<String> listContainerNames(); boolean createContainer(String containerName); void deleteContainer(String containerName); String receiveAndSaveToFile(String objectName, File toFile); String receiveAndSaveToFile(String containerName, String objectName, File toFile); InputStream receiveAsInputStream(String objectName); InputStream receiveAsInputStream(String containerName, String objectName); String receiveAsString(String objectName); String receiveAsString(String containerName, String objectName); String send(String objectName, String stringToSend); String send(String containerName, String objectName, String stringToSend); String send(File fileToSend); String send(String containerName, File fileToSend); String send(String containerName, String objectName, File fileToSend); String send(String objectName, InputStream is); String send(String containerName, String objectName, InputStream is); String getDefaultContainerName(); static final String DEFAULT_CONTAINER_NAME; }