org.jclouds.blobstore.strategy.internal
Class MarkersGetDirectoryStrategy

java.lang.Object
  extended by org.jclouds.blobstore.strategy.internal.MarkersGetDirectoryStrategy
All Implemented Interfaces:
GetDirectoryStrategy

@Singleton
public class MarkersGetDirectoryStrategy
extends Object
implements GetDirectoryStrategy

Key-value implementations of BlobStore, such as S3, do not have directories. In following the rackspace cloud files project, we use an empty object '#{dirpath}' with content type set to 'application/directory'.

To interoperate with other S3 tools, we accept the following ways to tell if the directory exists:

Author:
Adrian Cole
See Also:
MarkerFileMkdirStrategy

Field Summary
protected  ResourceMetadataToRelativePathResourceMetadata resource2Directory
           
 
Constructor Summary
MarkersGetDirectoryStrategy(BlobStore connection, ResourceMetadataToRelativePathResourceMetadata resource2Directory)
           
 
Method Summary
 StorageMetadata execute(String containerName, String directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource2Directory

protected final ResourceMetadataToRelativePathResourceMetadata resource2Directory
Constructor Detail

MarkersGetDirectoryStrategy

@Inject
public MarkersGetDirectoryStrategy(BlobStore connection,
                                          ResourceMetadataToRelativePathResourceMetadata resource2Directory)
Method Detail

execute

public StorageMetadata execute(String containerName,
                               String directory)
Specified by:
execute in interface GetDirectoryStrategy


Copyright © 2009-2012 jclouds. All Rights Reserved.