|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.res.type.ftp.FTPResourceProvider
public final class FTPResourceProvider
Constructor Summary | |
---|---|
FTPResourceProvider()
|
Method Summary | |
---|---|
void |
clean()
|
Map |
getArguments()
returns the arguments defined for this resource |
int |
getCache()
|
Resource |
getResource(String path)
path must have the following format: ftp://[ username[: password]@] hostname[: port][ absolute-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 |
returnClient(FTPResourceClient client)
|
void |
setResources(Resources resources)
|
void |
setScheme(String scheme)
|
long |
sizeOf()
return the size of the object |
void |
unlock(Resource res)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FTPResourceProvider()
Method Detail |
---|
public ResourceProvider init(String scheme, Map arguments)
ResourceProvider
init
in interface ResourceProvider
scheme
- of the provider (can be "null")arguments
- initals argument (can be "null")public Resource getResource(String path)
getResource
in interface ResourceProvider
res.ResourceProvider#getResource(java.lang.String)
public void returnClient(FTPResourceClient client)
public String getScheme()
ResourceProvider
getScheme
in interface ResourceProvider
res.ResourceProvider#getScheme()
public void setScheme(String scheme)
railo.commons.io.res.ResourceProvider#setScheme(java.lang.String)
public void setResources(Resources resources)
setResources
in interface ResourceProvider
ResourceProvider.setResources(railo.commons.io.res.Resources)
public void lock(Resource res) throws IOException
lock
in interface ResourceProvider
IOException
ResourceProvider.lock(railo.commons.io.res.Resource)
public void unlock(Resource res)
unlock
in interface ResourceProvider
ResourceProvider.unlock(railo.commons.io.res.Resource)
public void read(Resource res) throws IOException
read
in interface ResourceProvider
IOException
ResourceProvider.read(railo.commons.io.res.Resource)
public void clean()
public int getCache()
public boolean isAttributesSupported()
ResourceProvider
isAttributesSupported
in interface ResourceProvider
ResourceProvider.isAttributesSupported()
public boolean isCaseSensitive()
ResourceProvider
isCaseSensitive
in interface ResourceProvider
public boolean isModeSupported()
ResourceProvider
isModeSupported
in interface ResourceProvider
ResourceProvider.isModeSupported()
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
Sizeable.sizeOf()
public Map getArguments()
ResourceProvider
getArguments
in interface ResourceProvider
ResourceProvider.getArguments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |