You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2017/11/07 18:58:33 UTC

jclouds git commit: JCLOUDS-1080: request JSON only for list objects

Repository: jclouds
Updated Branches:
  refs/heads/master 9dc85ecaa -> 52044d23d


JCLOUDS-1080: request JSON only for list objects


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/52044d23
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/52044d23
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/52044d23

Branch: refs/heads/master
Commit: 52044d23d9e87de45593ab5c3a21e6fcf768717d
Parents: 9dc85ec
Author: Andrew Gaul <ga...@apache.org>
Authored: Tue Nov 7 08:53:46 2017 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Tue Nov 7 10:58:09 2017 -0800

----------------------------------------------------------------------
 .../java/org/jclouds/openstack/swift/v1/features/ObjectApi.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/52044d23/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java
----------------------------------------------------------------------
diff --git a/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java b/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java
index 3164421..24d8450 100644
--- a/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java
+++ b/apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/features/ObjectApi.java
@@ -72,7 +72,6 @@ import com.google.common.annotations.Beta;
  */
 @Beta
 @RequestFilters(AuthenticateRequest.class)
-@Consumes(APPLICATION_JSON)
 public interface ObjectApi {
 
    /**
@@ -80,6 +79,7 @@ public interface ObjectApi {
     *
     * @return an {@link ObjectList} of {@link SwiftObject} ordered by name or {@code null}.
     */
+   @Consumes(APPLICATION_JSON)
    @Named("object:list")
    @GET
    @ResponseParser(ParseObjectListFromResponse.class)
@@ -98,6 +98,7 @@ public interface ObjectApi {
     *
     * @return an {@link ObjectList} of {@link SwiftObject} ordered by name or {@code null}.
     */
+   @Consumes(APPLICATION_JSON)
    @Named("object:list")
    @GET
    @ResponseParser(ParseObjectListFromResponse.class)
@@ -190,7 +191,6 @@ public interface ObjectApi {
    @Path("/{objectName}")
    @ResponseParser(ParseObjectFromResponse.class)
    @Fallback(NullOnNotFoundOr404.class)
-   @QueryParams(keys = "format", values = "json")
    @Nullable
    SwiftObject get(@PathParam("objectName") String objectName, GetOptions options);