summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2019-04-19 05:01:09 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-19 05:01:09 +0000
commitf7719c0f8636d209c6c5c85bb3a14ca0b6e0fd98 (patch)
tree6f32bf93598843552912c022c049edfa5794882c
parent8a90956821744c35a5abc4a992f53c32775f5ae3 (diff)
parent5a9f35c0bc77a748e976a9a7c40c480bb09e39d1 (diff)
Merge "Change constructor and class removing unused code."
-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();
}
}