org.jclouds.blobstore.strategy.internal
Class MarkerFileMkdirStrategy

java.lang.Object
  extended by org.jclouds.blobstore.strategy.internal.MarkerFileMkdirStrategy
All Implemented Interfaces:
MkdirStrategy

@Singleton
public class MarkerFileMkdirStrategy
extends Object
implements MkdirStrategy

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'.

Author:
Adrian Cole

Field Summary
protected  String directorySuffix
           
 
Method Summary
 void 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

directorySuffix

@Inject(optional=true)
@Named(value="jclouds.blobstore.directorysuffix")
protected String directorySuffix
Method Detail

execute

public void execute(String containerName,
                    String directory)
Specified by:
execute in interface MkdirStrategy


Copyright © 2009-2011 jclouds. All Rights Reserved.