From 8c327f036b8e3022cf8f5540606d6d86f7dedc28 Mon Sep 17 00:00:00 2001 From: adriancole Date: Sat, 2 Feb 2013 18:12:49 -0800 Subject: [PATCH] issue 1184 add named for Atmos commands --- .../java/org/jclouds/atmos/AtmosAsyncClient.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/apis/atmos/src/main/java/org/jclouds/atmos/AtmosAsyncClient.java b/apis/atmos/src/main/java/org/jclouds/atmos/AtmosAsyncClient.java index 280fb7ee6c..dc67cb5d48 100644 --- a/apis/atmos/src/main/java/org/jclouds/atmos/AtmosAsyncClient.java +++ b/apis/atmos/src/main/java/org/jclouds/atmos/AtmosAsyncClient.java @@ -20,6 +20,7 @@ package org.jclouds.atmos; import java.net.URI; +import javax.inject.Named; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; @@ -83,6 +84,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#listDirectories */ + @Named("ListDirectory") @GET @ResponseParser(ParseDirectoryListFromContentAndHeaders.class) @Consumes(MediaType.TEXT_XML) @@ -91,6 +93,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#listDirectory */ + @Named("ListDirectory") @GET @Path("/{directoryName}/") @ResponseParser(ParseDirectoryListFromContentAndHeaders.class) @@ -102,6 +105,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#createDirectory */ + @Named("CreateDirectory") @POST @Path("/{directoryName}/") @Fallback(EndpointIfAlreadyExists.class) @@ -112,6 +116,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#createFile */ + @Named("CreateObject") @POST @Path("/{parent}/{name}") @Consumes(MediaType.WILDCARD) @@ -123,6 +128,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#updateFile */ + @Named("UpdateObject") @PUT @Path("/{parent}/{name}") @Fallback(ThrowKeyNotFoundOn404.class) @@ -135,6 +141,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#readFile */ + @Named("ReadObject") @GET @ResponseParser(ParseObjectFromHeadersAndHttpContent.class) @Fallback(NullOnNotFoundOr404.class) @@ -145,6 +152,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#headFile */ + @Named("GetObjectMetadata") @HEAD @ResponseParser(ParseObjectFromHeadersAndHttpContent.class) @Fallback(NullOnNotFoundOr404.class) @@ -155,6 +163,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#getSystemMetadata */ + @Named("GetSystemMetadata") @HEAD @ResponseParser(ParseSystemMetadataFromHeaders.class) @Fallback(NullOnNotFoundOr404.class) @@ -166,6 +175,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#getUserMetadata */ + @Named("GetUserMetadata") @HEAD @ResponseParser(ParseUserMetadataFromHeaders.class) @Fallback(NullOnNotFoundOr404.class) @@ -177,6 +187,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#deletePath */ + @Named("DeleteObject") @DELETE @Fallback(VoidOnNotFoundOr404.class) @Path("/{path}") @@ -186,6 +197,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#pathExists */ + @Named("GetObjectMetadata") @HEAD @Fallback(FalseOnNotFoundOr404.class) @Path("/{path}") @@ -195,6 +207,7 @@ public interface AtmosAsyncClient { /** * @see AtmosClient#isPublic */ + @Named("GetObjectMetadata") @HEAD @ResponseParser(ReturnTrueIfGroupACLIsOtherRead.class) @Path("/{path}")