public final class S3ResourceProvider extends Object implements ResourceProviderPro
Constructor and Description |
---|
S3ResourceProvider() |
Modifier and Type | Method and Description |
---|---|
Map |
getArguments()
returns the arguments defined for this resource
|
int |
getCache() |
int |
getLockTimeout() |
Resource |
getResource(String path)
return a resource that match given path
|
String |
getScheme()
returns the scheme of the resource
|
char |
getSeparator() |
int |
getSocketTimeout() |
ResourceProvider |
init(String scheme,
Map arguments)
initalize ram resource
|
boolean |
isAttributesSupported()
returns if the resource support attributes for his resources
|
boolean |
isCaseSensitive()
returns if the resources of the provider are case-sensitive or not
|
boolean |
isModeSupported()
returns if the resource support mode for his resources
|
static String |
loadWithNewPattern(S3 s3,
RefInteger storage,
String path) |
static String |
loadWithOldPattern(S3 s3,
RefInteger storage,
String path) |
void |
lock(Resource res) |
void |
read(Resource res) |
void |
setResources(Resources res) |
void |
unlock(Resource res) |
public S3ResourceProvider()
public ResourceProvider init(String scheme, Map arguments)
init
in interface ResourceProvider
scheme
- arguments
- public String getScheme()
ResourceProvider
getScheme
in interface ResourceProvider
public Resource getResource(String path)
ResourceProvider
getResource
in interface ResourceProvider
public static String loadWithNewPattern(S3 s3, RefInteger storage, String path)
public static String loadWithOldPattern(S3 s3, RefInteger storage, String path)
public boolean isAttributesSupported()
ResourceProvider
isAttributesSupported
in interface ResourceProvider
public boolean isCaseSensitive()
ResourceProvider
isCaseSensitive
in interface ResourceProvider
public boolean isModeSupported()
ResourceProvider
isModeSupported
in interface ResourceProvider
public void lock(Resource res) throws IOException
lock
in interface ResourceProvider
IOException
public void read(Resource res) throws IOException
read
in interface ResourceProvider
IOException
public void setResources(Resources res)
setResources
in interface ResourceProvider
public void unlock(Resource res)
unlock
in interface ResourceProvider
public int getSocketTimeout()
public int getLockTimeout()
public int getCache()
public Map getArguments()
ResourceProvider
getArguments
in interface ResourceProvider
public char getSeparator()
getSeparator
in interface ResourceProviderPro
Copyright © 2015 Lucee