JCLOUDS-805: return null w/ non-existent container

This matches the behavior of other blobstores and allows
deleteContainerIfEmptyWithoutContents to pass.
This commit is contained in:
Andrew Gaul 2015-01-16 10:51:24 -08:00
parent ea9e847f44
commit 8e9485b7bb

View File

@ -230,6 +230,7 @@ public interface ObjectApi {
@GET
@Consumes(APPLICATION_JSON)
@Path("storage/v1/b/{bucket}/o")
@Fallback(NullOnNotFoundOr404.class)
ListPageWithPrefixes<GoogleCloudStorageObject> listObjects(@PathParam("bucket") String bucketName);
/**
@ -245,6 +246,7 @@ public interface ObjectApi {
@GET
@Consumes(APPLICATION_JSON)
@Path("storage/v1/b/{bucket}/o")
@Fallback(NullOnNotFoundOr404.class)
ListPageWithPrefixes<GoogleCloudStorageObject> listObjects(@PathParam("bucket") String bucketName, ListObjectOptions options);
/**