public class AzureService extends StorageServiceBase<org.osgl.storage.impl.AzureObject> implements IStorageService
IStorageService.f| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_ACCOUNT_KEY |
static String |
CONF_ACCOUNT_NAME |
static String |
CONF_BUCKET |
static String |
CONF_PROTOCOL |
conf, CONF_GET_META_ONLY, CONF_GET_NO_GET, CONF_KEY_NAME_PROVIDER, CONF_STATIC_WEB_ENDPOINT, CONF_STORE_SUFFIX, contextPath, keygen, logger, subFoldersCONF_CONTEXT_PATH, CONF_ID, CONF_KEY_GEN, DEFAULT, VERSION| Constructor and Description |
|---|
AzureService(Map<String,String> conf) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(Map<String,String> conf) |
protected InputStream |
doGetInputStream(String fullPath)
Returns the input stream from fullPath specified.
|
protected Map<String,String> |
doGetMeta(String fullPath)
Returns the meta attributes from fullPath specified.
|
protected void |
doPut(String fullPath,
ISObject stuff,
Map<String,String> attrs)
Put the storage object specified by fullPath into the storage service.
|
protected void |
doRemove(String fullPath)
Remove the storage object specified by fullPath.
|
String |
getUrl(String key)
Return the URL to access a stored resource by key
|
protected String |
keyWithContextPath(String key) |
protected StorageServiceBase |
newService(Map<String,String> conf) |
protected ISObject |
newSObject(String key) |
configure, contextPath, createSubFolder, forceGet, get, getConfValue, getContextPath, getFull, getKey, getKey, getLazy, getMeta, getMeta, getStaticWebEndpoint, id, isManaged, loadContent, put, remove, setKeyGenerator, setKeyNameProvider, subFolderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontextPath, forceGet, get, getContextPath, getFull, getKey, getKey, getLazy, getStaticWebEndpoint, id, isManaged, loadContent, put, remove, subFolderpublic static final String CONF_PROTOCOL
public static final String CONF_ACCOUNT_NAME
public static final String CONF_ACCOUNT_KEY
public static final String CONF_BUCKET
protected void configure(Map<String,String> conf)
configure in class StorageServiceBase<org.osgl.storage.impl.AzureObject>protected void doRemove(String fullPath)
StorageServiceBaseRemove the storage object specified by fullPath. The fullPath is composed of * StorageServiceBase.contextPath() * ISObject.getKey()
doRemove in class StorageServiceBase<org.osgl.storage.impl.AzureObject>fullPath - the full path to locate the storage objectpublic String getUrl(String key)
IStorageServiceReturn the URL to access a stored resource by key
getUrl in interface IStorageServicegetUrl in class StorageServiceBase<org.osgl.storage.impl.AzureObject>protected String keyWithContextPath(String key)
keyWithContextPath in class StorageServiceBase<org.osgl.storage.impl.AzureObject>protected Map<String,String> doGetMeta(String fullPath)
StorageServiceBaseReturns the meta attributes from fullPath specified. The fullPath is composed of * StorageServiceBase.contextPath() * ISObject.getKey()
doGetMeta in class StorageServiceBase<org.osgl.storage.impl.AzureObject>fullPath - the full path to locate the storage objectprotected ISObject newSObject(String key)
newSObject in class StorageServiceBase<org.osgl.storage.impl.AzureObject>protected void doPut(String fullPath, ISObject stuff, Map<String,String> attrs)
StorageServiceBasePut the storage object specified by fullPath into the storage service. The fullPath is composed of * StorageServiceBase.contextPath() * ISObject.getKey()
doPut in class StorageServiceBase<org.osgl.storage.impl.AzureObject>fullPath - the full path to locate the storage objectattrs - the meta attributes of the storage objectprotected StorageServiceBase newService(Map<String,String> conf)
newService in class StorageServiceBase<org.osgl.storage.impl.AzureObject>protected InputStream doGetInputStream(String fullPath)
StorageServiceBaseReturns the input stream from fullPath specified. The fullPath is composed of * StorageServiceBase.contextPath() * ISObject.getKey()
doGetInputStream in class StorageServiceBase<org.osgl.storage.impl.AzureObject>fullPath - the full path to locate the storage objectCopyright © 2013–2017 OSGL (Open Source General Library). All rights reserved.