public class SwiftObjectStorageClient extends Object implements ObjectStorageClient
| Constructor and Description |
|---|
SwiftObjectStorageClient(String authUrl,
String userName,
String password,
String containerName,
String regionName,
String tenantName) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String objectName)
Deletes an object, if present.
|
Optional<StorageObject> |
get(String objectName)
Gets the
StorageObject including its body. |
Optional<StorageObject> |
getWithoutBody(String objectName)
Gets the
StorageObject metadata without its body. |
List<StorageObject> |
list() |
String |
put(StorageObject storageObject)
Creates or updates a
StorageObject. |
String |
put(String key,
org.jclouds.io.Payload value)
Creates or updates a
StorageObject. |
public List<StorageObject> list()
list in interface ObjectStorageClientList.public String put(String key, org.jclouds.io.Payload value)
ObjectStorageClientStorageObject.put in interface ObjectStorageClientkey - corresponds to StorageObject.getName().value - corresponds to StorageObject.getPayload().StorageObject.getETag() of the object.public String put(StorageObject storageObject)
ObjectStorageClientStorageObject.put in interface ObjectStorageClientstorageObject - corresponds to StorageObject.getName().StorageObject.getETag() of the object.public Optional<StorageObject> getWithoutBody(String objectName)
ObjectStorageClientStorageObject metadata without its body.getWithoutBody in interface ObjectStorageClientobjectName - corresponds to StorageObject.getName().StorageObject or null, if not found.public Optional<StorageObject> get(String objectName)
ObjectStorageClientStorageObject including its body.get in interface ObjectStorageClientobjectName - corresponds to StorageObject.getName().StorageObject or null, if not found.public void delete(String objectName)
ObjectStorageClientdelete in interface ObjectStorageClientobjectName - corresponds to StorageObject.getName().Copyright © 2017. All rights reserved.