public class FileSystemService extends StorageServiceBase<org.osgl.storage.impl.FileObject> implements IStorageService
IStorageService.f| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_FS_GET_NO_GET
Deprecated.
|
static String |
CONF_HOME_DIR |
static String |
CONF_HOME_URL
Deprecated.
|
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 |
|---|
FileSystemService(Map<String,String> conf) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(Map<String,String> conf) |
protected File |
doGetFile(String fullPath) |
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.
|
protected File |
getFile(String fullPath) |
protected StorageServiceBase |
newService(Map<String,String> conf) |
protected ISObject |
newSObject(String key) |
File |
root() |
configure, contextPath, createSubFolder, forceGet, get, getConfValue, getContextPath, getFull, getKey, getKey, getLazy, getMeta, getMeta, getStaticWebEndpoint, getUrl, id, isManaged, keyWithContextPath, loadContent, put, remove, setKeyGenerator, setKeyNameProvider, subFolderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontextPath, forceGet, get, getContextPath, getFull, getKey, getKey, getLazy, getStaticWebEndpoint, getUrl, id, isManaged, loadContent, put, remove, subFolderpublic static final String CONF_HOME_DIR
@Deprecated public static final String CONF_HOME_URL
The configuration of static URL root of this file system storage.
Note, this configuration item is deprecated. Please use StorageServiceBase.CONF_STATIC_WEB_ENDPOINT instead
@Deprecated public static final String CONF_FS_GET_NO_GET
This configuration item has been deprecated. Please use StorageServiceBase.CONF_GET_NO_GET instead
protected void configure(Map<String,String> conf)
configure in class StorageServiceBase<org.osgl.storage.impl.FileObject>public File root()
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.FileObject>fullPath - the full path to locate the storage objectprotected 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.FileObject>fullPath - the full path to locate the storage objectprotected 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.FileObject>fullPath - the full path to locate the storage objectprotected ISObject newSObject(String key)
newSObject in class StorageServiceBase<org.osgl.storage.impl.FileObject>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.FileObject>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.FileObject>Copyright © 2013–2017 OSGL (Open Source General Library). All rights reserved.