public class DefaultWindowsAzureServiceFactory extends Object implements WindowsAzureServiceFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_STRING_KEY |
static String |
CONTAINER_ADDRESS_KEY |
static String |
PUBLIC_BASE_URL_KEY |
protected String |
tenantPrefix |
| Constructor and Description |
|---|
DefaultWindowsAzureServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
CloudBlobClient |
getCloudBlobClient(MediaStorageConfigService.MediaFolderConfig config)
Gets the cloud blob client configured globally or per media folder.
|
CloudBlobClient |
getCloudBlobClientForConnection(String connectionString) |
CloudBlobContainer |
getContainerForFolder(MediaStorageConfigService.MediaFolderConfig config,
CloudBlobClient blobClient)
Gets the container for folder.
|
String |
getFolderBaseURL(MediaStorageConfigService.MediaFolderConfig config)
Gets the folder base url.
|
void |
setTenantPrefix() |
public static final String CONNECTION_STRING_KEY
public static final String PUBLIC_BASE_URL_KEY
public static final String CONTAINER_ADDRESS_KEY
protected String tenantPrefix
public void setTenantPrefix()
public CloudBlobClient getCloudBlobClientForConnection(String connectionString)
getCloudBlobClientForConnection in interface WindowsAzureServiceFactorypublic CloudBlobClient getCloudBlobClient(MediaStorageConfigService.MediaFolderConfig config)
WindowsAzureServiceFactorygetCloudBlobClient in interface WindowsAzureServiceFactorypublic CloudBlobContainer getContainerForFolder(MediaStorageConfigService.MediaFolderConfig config, CloudBlobClient blobClient) throws URISyntaxException, StorageException
WindowsAzureServiceFactorygetContainerForFolder in interface WindowsAzureServiceFactoryconfig - media folder configurationblobClient - the blob clientURISyntaxException - the uRI syntax exceptionStorageException - the storage exceptionpublic String getFolderBaseURL(MediaStorageConfigService.MediaFolderConfig config)
WindowsAzureServiceFactorygetFolderBaseURL in interface WindowsAzureServiceFactoryCopyright © 2017 SAP SE. All Rights Reserved.