public interface ResourceProvider extends Serializable
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getArguments()
returns the arguments defined for this resource
|
Resource |
getResource(String path)
return a resource that match given path
|
String |
getScheme()
returns the scheme of the resource
|
ResourceProvider |
init(String scheme,
Map arguments)
this class is called by the "Resources" at startup
|
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
|
void |
lock(Resource res) |
void |
read(Resource res) |
void |
setResources(Resources resources) |
void |
unlock(Resource res) |
ResourceProvider init(String scheme, Map arguments)
scheme
- of the provider (can be "null")arguments
- initals argument (can be "null")Resource getResource(String path)
path
- Map<String,String> getArguments()
void setResources(Resources resources)
void lock(Resource res) throws IOException
IOException
void read(Resource res) throws IOException
IOException
boolean isCaseSensitive()
boolean isModeSupported()
boolean isAttributesSupported()
Copyright © 2015 Lucee