railo.commons.io.res.type.s3
Class S3ResourceProvider

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

public final class S3ResourceProvider
extends Object
implements ResourceProvider

See Also:
Serialized Form

Constructor Summary
S3ResourceProvider()
           
 
Method Summary
 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
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S3ResourceProvider

public S3ResourceProvider()
Method Detail

init

public ResourceProvider init(String scheme,
                             Map arguments)
initalize ram resource

Specified by:
init in interface ResourceProvider
Parameters:
scheme -
arguments -
Returns:
RamResource

getScheme

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

Specified by:
getScheme in interface ResourceProvider
Returns:
scheme

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

loadWithNewPattern

public static String loadWithNewPattern(S3 s3,
                                        RefInteger storage,
                                        String path)

loadWithOldPattern

public static String loadWithOldPattern(S3 s3,
                                        RefInteger storage,
                                        String path)

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

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

lock

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

read

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

setResources

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

unlock

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

getSocketTimeout

public int getSocketTimeout()
Returns:
the socketTimeout

getLockTimeout

public int getLockTimeout()
Returns:
the lockTimeout

getCache

public int getCache()
Returns:
the cache

getArguments

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

Specified by:
getArguments in interface ResourceProvider
Returns:
scheme


Copyright © 2012 Railo