/** * Retrieves the current {@link ServiceProperties} for the given storage service. This includes Logging, * HourMetrics, MinuteMetrics and CORS configurations. * * @return the {@link ServiceProperties} object representing the current configuration of the service. * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final ServiceProperties downloadServiceProperties() throws StorageException { return this.downloadServiceProperties(null /* options */, null /* opContext */); }
/** * Retrieves the current {@link ServiceProperties} for the given storage service. This includes Logging, * HourMetrics, MinuteMetrics and CORS configurations. * * @return the {@link ServiceProperties} object representing the current configuration of the service. * @throws StorageException * If a storage service error occurred. */ @DoesServiceRequest public final ServiceProperties downloadServiceProperties() throws StorageException { return this.downloadServiceProperties(null /* options */, null /* opContext */); }
private ServiceProperties callDownloadServiceProperties(ServiceClient client) throws StorageException { if (client.getClass().equals(CloudBlobClient.class)) { CloudBlobClient blobClient = (CloudBlobClient) client; return blobClient.downloadServiceProperties(); } else if (client.getClass().equals(CloudTableClient.class)) { CloudTableClient tableClient = (CloudTableClient) client; return tableClient.downloadServiceProperties(); } else if (client.getClass().equals(CloudQueueClient.class)) { CloudQueueClient queueClient = (CloudQueueClient) client; return queueClient.downloadServiceProperties(); } else { fail(); } return null; }