railo.commons.io.res.type.cfml
Class CFMLResourceProvider

java.lang.Object
  extended by railo.commons.io.res.type.cfml.CFMLResourceProvider
All Implemented Interfaces:
Serializable, ResourceProvider

public class CFMLResourceProvider
extends Object
implements ResourceProvider

See Also:
Serialized Form

Constructor Summary
CFMLResourceProvider()
           
 
Method Summary
 Map getArguments()
          returns the arguments defined for this resource
 int getLockTimeout()
           
 Resource getResource(String path)
          return a resource that match given path
 String getScheme()
          returns the scheme of the resource
 ResourceProvider init(String scheme, Map args)
          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
 boolean isUseStreams()
           
 void lock(Resource res)
           
 void read(Resource res)
           
 void setResources(Resources resources)
           
 void unlock(Resource res)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFMLResourceProvider

public CFMLResourceProvider()
Method Detail

init

public ResourceProvider init(String scheme,
                             Map args)
Description copied from interface: ResourceProvider
this class is called by the "Resources" at startup

Specified by:
init in interface ResourceProvider
Parameters:
scheme - of the provider (can be "null")
args - initals argument (can be "null")

getResource

public Resource getResource(String path)
Description copied from interface: ResourceProvider
return a resource that match given path

Specified by:
getResource in interface ResourceProvider
Returns:
matching resource to path

getScheme

public String getScheme()
Description copied from interface: ResourceProvider
returns the scheme of the resource

Specified by:
getScheme in interface ResourceProvider
Returns:
scheme

getArguments

public Map getArguments()
Description copied from interface: ResourceProvider
returns the arguments defined for this resource

Specified by:
getArguments in interface ResourceProvider
Returns:
scheme

setResources

public void setResources(Resources resources)
Specified by:
setResources in interface ResourceProvider

isCaseSensitive

public boolean isCaseSensitive()
Description copied from interface: ResourceProvider
returns if the resources of the provider are case-sensitive or not

Specified by:
isCaseSensitive in interface ResourceProvider
Returns:
is resource case-sensitive or not

isModeSupported

public boolean isModeSupported()
Description copied from interface: ResourceProvider
returns if the resource support mode for his resources

Specified by:
isModeSupported in interface ResourceProvider
Returns:
is mode supported or not

isAttributesSupported

public boolean isAttributesSupported()
Description copied from interface: ResourceProvider
returns if the resource support attributes for his resources

Specified by:
isAttributesSupported in interface ResourceProvider
Returns:
is attributes supported or not

getLockTimeout

public int getLockTimeout()

lock

public void lock(Resource res)
          throws IOException
Specified by:
lock in interface ResourceProvider
Throws:
IOException

unlock

public void unlock(Resource res)
Specified by:
unlock in interface ResourceProvider

read

public void read(Resource res)
          throws IOException
Specified by:
read in interface ResourceProvider
Throws:
IOException

isUseStreams

public boolean isUseStreams()


Copyright © 2012 Railo