public class BlobStoreUtils extends Object
Modifier and Type | Field and Description |
---|---|
static ExceptionToValueOrPropagate<ContainerNotFoundException,?> |
containerNotFoundToNullOrPropagate |
static ExceptionToValueOrPropagate<KeyNotFoundException,?> |
keyNotFoundToNullOrPropagate |
Constructor and Description |
---|
BlobStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> HttpRequest |
cleanRequest(HttpRequest returnVal) |
static <T> T |
containerNotFoundToNullOrPropagate(Exception e) |
static com.google.common.util.concurrent.ListenableFuture<Void> |
createParentIfNeededAsync(AsyncBlobStore asyncBlobStore,
String container,
Blob blob) |
static String |
getContentAsStringOrNullAndClose(Blob blob) |
static String |
getNameFor(GeneratedHttpRequest<?> request) |
static Iterable<String> |
getSupportedProviders() |
static <T> T |
keyNotFoundToNullOrPropagate(Exception e) |
static Blob |
newBlob(BlobStore blobStore,
StorageMetadata blobMeta) |
static String |
parseContainerFromPath(String path) |
static String |
parseDirectoryFromPath(String path) |
static String |
parsePrefixFromPath(String path) |
public static final ExceptionToValueOrPropagate<KeyNotFoundException,?> keyNotFoundToNullOrPropagate
public static final ExceptionToValueOrPropagate<ContainerNotFoundException,?> containerNotFoundToNullOrPropagate
public static <T> HttpRequest cleanRequest(HttpRequest returnVal)
public static <T> T keyNotFoundToNullOrPropagate(Exception e)
public static <T> T containerNotFoundToNullOrPropagate(Exception e)
public static Blob newBlob(BlobStore blobStore, StorageMetadata blobMeta)
public static String getNameFor(GeneratedHttpRequest<?> request)
public static String getContentAsStringOrNullAndClose(Blob blob) throws IOException
IOException
public static com.google.common.util.concurrent.ListenableFuture<Void> createParentIfNeededAsync(AsyncBlobStore asyncBlobStore, String container, Blob blob)
Copyright © 2009-2012 jclouds. All Rights Reserved.