diff options
Diffstat (limited to 'swift-client/src/main/java/com/woorea')
-rw-r--r-- | swift-client/src/main/java/com/woorea/openstack/swift/api/AccountResource.java | 2 | ||||
-rw-r--r-- | swift-client/src/main/java/com/woorea/openstack/swift/api/ContainerResource.java | 22 |
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(); } } |