From 5a9f35c0bc77a748e976a9a7c40c480bb09e39d1 Mon Sep 17 00:00:00 2001 From: Isaac Manuel Raj Date: Thu, 18 Apr 2019 13:53:39 +0530 Subject: Change constructor and class removing unused code. Change constructor and class removing unused code. Issue-ID: SO-1490 Change-Id: I5cc4061daad78ca97aef2a4bfed7a0504e20b92c Signed-off-by: Isaac Manuel Raj --- .../openstack/swift/api/AccountResource.java | 2 +- .../openstack/swift/api/ContainerResource.java | 22 ++-------------------- 2 files changed, 3 insertions(+), 21 deletions(-) (limited to 'swift-client/src/main/java/com/woorea/openstack/swift') diff --git a/swift-client/src/main/java/com/woorea/openstack/swift/api/AccountResource.java b/swift-client/src/main/java/com/woorea/openstack/swift/api/AccountResource.java index 7efd22a..a860c71 100644 --- a/swift-client/src/main/java/com/woorea/openstack/swift/api/AccountResource.java +++ b/swift-client/src/main/java/com/woorea/openstack/swift/api/AccountResource.java @@ -30,7 +30,7 @@ public class AccountResource { public class ShowAccount extends OpenStackRequest { public ShowAccount() { -// return target.request(MediaType.APPLICATION_JSON).head(); + } } diff --git a/swift-client/src/main/java/com/woorea/openstack/swift/api/ContainerResource.java b/swift-client/src/main/java/com/woorea/openstack/swift/api/ContainerResource.java index 23a2d0d..5b5cc02 100644 --- a/swift-client/src/main/java/com/woorea/openstack/swift/api/ContainerResource.java +++ b/swift-client/src/main/java/com/woorea/openstack/swift/api/ContainerResource.java @@ -69,14 +69,6 @@ public class ContainerResource { public List(String containerName, Map filters) { this.containerName = containerName; this.filters = filters; - //returnType(new TypeToken>(){}); -// target = target.path(containerName); -// for(String filter : new String[]{"prefix","delimiter","path","marker"}) { -// if(filters.get(filter) != null) { -// target = target.queryParam(filter, filters.get(filter)); -// } -// } -// return target.request(MediaType.APPLICATION_JSON).get(new GenericType>(){}); } } @@ -90,7 +82,6 @@ public class ContainerResource { public CreateDirectory(String container, String path) { this.container = container; this.path = path; -// endpoint.path(container).path(path).request().put(Entity.entity(new byte[1],"application/directory")); } } @@ -104,7 +95,7 @@ public class ContainerResource { public Show(String containerName, String objectName) { this.containerName = containerName; this.objectName = objectName; -// return target.path(containerName).path(objectName).request(MediaType.APPLICATION_JSON).head(); + } } @@ -115,11 +106,7 @@ public class ContainerResource { public Upload(ObjectForUpload objectForUpload) { this.objectForUpload = objectForUpload; -// Invocation.Builder invocationBuilder = target.path(objectForUpload.getContainer()).path(objectForUpload.getName()).request(MediaType.APPLICATION_JSON); -// for(String key : objectForUpload.getProperties().keySet()) { -// invocationBuilder.header("x-object-meta-" + key, objectForUpload.getProperties().get(key)); -// } -// return invocationBuilder.put(Entity.entity(objectForUpload.getInputStream(), MediaType.APPLICATION_OCTET_STREAM), Response.class); + } } @@ -133,10 +120,6 @@ public class ContainerResource { public Download(String containerName, String objectName) { this.containerName = containerName; this.objectName = objectName; -// Response response = target.path(containerName).path(objectName).request(MediaType.APPLICATION_JSON).get(); -// ObjectDownload objectDownload = new ObjectDownload(); -// objectDownload.setInputStream((InputStream) response.getEntity()); -// return objectDownload; } } @@ -151,7 +134,6 @@ public class ContainerResource { public Delete(String containerName, String objectName) { this.containerName = containerName; this.objectName = objectName; - //return target.path(containerName).path(objectName).request(MediaType.APPLICATION_JSON).delete(); } } -- cgit 1.2.3-korg