summaryrefslogtreecommitdiffstats
path: root/swift-client/src
diff options
context:
space:
mode:
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-18 13:53:39 +0530
committerIsaac Manuel Raj <isaac.manuelraj@huawei.com>2019-04-18 13:53:39 +0530
commit5a9f35c0bc77a748e976a9a7c40c480bb09e39d1 (patch)
tree2de553e9598643ddc99431b99f2b661882b68d96 /swift-client/src
parentf31f8ce722efcb2465d290cc3755c258ef2857af (diff)
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 <isaac.manuelraj@huawei.com>
Diffstat (limited to 'swift-client/src')
-rw-r--r--swift-client/src/main/java/com/woorea/openstack/swift/api/AccountResource.java2
-rw-r--r--swift-client/src/main/java/com/woorea/openstack/swift/api/ContainerResource.java22
2 files changed, 3 insertions, 21 deletions
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<Void> {
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<String, String> filters) {
this.containerName = containerName;
this.filters = filters;
- //returnType(new TypeToken<List<Object>>(){});
-// 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<List<Object>>(){});
}
}
@@ -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();
}
}