org.jclouds.blobstore.internal
Class BlobMapImpl

java.lang.Object
  extended by org.jclouds.blobstore.internal.BaseBlobMap<Blob>
      extended by org.jclouds.blobstore.internal.BlobMapImpl
All Implemented Interfaces:
Map<String,Blob>, BlobMap, ListableMap<String,Blob>

public class BlobMapImpl
extends BaseBlobMap<Blob>
implements BlobMap

Map representation of a live connection to a Blob Service.

Author:
Adrian Cole
See Also:
BlobStore, BaseBlobMap

Nested Class Summary
static class BlobMapImpl.CorrectBlobName
           
 
Nested classes/interfaces inherited from class org.jclouds.blobstore.internal.BaseBlobMap
BaseBlobMap.Entry
 
Nested classes/interfaces inherited from interface org.jclouds.blobstore.BlobMap
BlobMap.Factory
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.jclouds.blobstore.internal.BaseBlobMap
blobstore, containerName, containsValueStrategy, getAllBlobs, listStrategy, options, pathStripper, prefixer, putBlobsStrategy
 
Constructor Summary
BlobMapImpl(BlobStore blobstore, GetBlobsInListStrategy getAllBlobs, ContainsValueInListStrategy containsValueStrategy, PutBlobsStrategy putBlobsStrategy, ListContainerAndRecurseThroughFolders listStrategy, String containerName, ListContainerOptions options, javax.inject.Provider<BlobBuilder> blobBuilders)
           
 
Method Summary
 BlobBuilder blobBuilder()
           
 Blob get(Object key)
           
 Blob newBlob(String name)
           
 Blob put(String key, Blob value)
           
 void putAll(Map<? extends String,? extends Blob> map)
           
 Blob remove(Object key)
           
 Collection<Blob> values()
           
 
Methods inherited from class org.jclouds.blobstore.internal.BaseBlobMap
clear, containsKey, containsValue, entrySet, getAllBlobs, isEmpty, keySet, list, size, stripPrefix, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.blobstore.ListableMap
list
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size
 

Constructor Detail

BlobMapImpl

@Inject
public BlobMapImpl(BlobStore blobstore,
                          GetBlobsInListStrategy getAllBlobs,
                          ContainsValueInListStrategy containsValueStrategy,
                          PutBlobsStrategy putBlobsStrategy,
                          ListContainerAndRecurseThroughFolders listStrategy,
                          String containerName,
                          ListContainerOptions options,
                          javax.inject.Provider<BlobBuilder> blobBuilders)
Method Detail

get

public Blob get(Object key)
Specified by:
get in interface Map<String,Blob>

put

public Blob put(String key,
                Blob value)
Specified by:
put in interface Map<String,Blob>

putAll

public void putAll(Map<? extends String,? extends Blob> map)
Specified by:
putAll in interface Map<String,Blob>

remove

public Blob remove(Object key)
Specified by:
remove in interface Map<String,Blob>

values

public Collection<Blob> values()
Specified by:
values in interface Map<String,Blob>

newBlob

public Blob newBlob(String name)
Specified by:
newBlob in interface BlobMap
See Also:
BlobMap.blobBuilder()

blobBuilder

public BlobBuilder blobBuilder()
Specified by:
blobBuilder in interface BlobMap
Returns:
builder for creating new Blobs


Copyright © 2009-2011 jclouds. All Rights Reserved.