public class ObjectStorageObjectServiceImpl extends BaseObjectStorageService implements ObjectStorageObjectService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
ObjectStorageObjectServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
copy(ObjectLocation source,
ObjectLocation dest)
Copies an object to another object in the object store
|
ActionResponse |
delete(ObjectLocation location)
Deletes an Object from the specified container
|
ActionResponse |
delete(ObjectLocation location,
ObjectDeleteOptions options)
Deletes an Object from the specified container
|
ActionResponse |
delete(String containerName,
String name)
Deletes an Object from the specified container
|
DLPayload |
download(ObjectLocation location,
DownloadOptions options)
Retrieves the Payload for the data backing the given
location |
DLPayload |
download(String containerName,
String name)
Retrieves the Payload for the data backing the given
containerName and name |
DLPayload |
download(String containerName,
String name,
DownloadOptions options)
Retrieves the Payload for the data backing the given
containerName and name |
SwiftObject |
get(ObjectLocation location)
Gets the specified object based on the ObjectLocation
location |
SwiftObject |
get(String containerName,
String name)
Gets the specified object based on the
containerName and name of the object |
Map<String,String> |
getMetadata(ObjectLocation location)
Gets the metadata for the specified object location
|
Map<String,String> |
getMetadata(String containerName,
String name)
|
List<? extends SwiftObject> |
list(String containerName)
Lists all objects for the given container name
|
List<? extends SwiftObject> |
list(String containerName,
ObjectListOptions options)
Lists all objects for the given container name and list options
|
String |
put(String containerName,
String name,
Payload<?> payload)
Adds/Updates a file to the specified container
|
String |
put(String containerName,
String name,
Payload<?> payload,
ObjectPutOptions options)
Adds/Updates a file to the specified container
|
boolean |
updateMetadata(ObjectLocation location,
Map<String,String> metadata)
Creates or Updates the given metadata for the specified object location
|
isResponseSuccess, isResponseSuccessdelete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends SwiftObject> list(String containerName)
ObjectStorageObjectServicelist in interface ObjectStorageObjectServicecontainerName - the container namepublic List<? extends SwiftObject> list(String containerName, ObjectListOptions options)
ObjectStorageObjectServicelist in interface ObjectStorageObjectServicecontainerName - the container nameoptions - additional filter based optionspublic SwiftObject get(ObjectLocation location)
locationget in interface ObjectStorageObjectServicelocation - the object locationpublic SwiftObject get(String containerName, String name)
containerName and name of the objectget in interface ObjectStorageObjectServicecontainerName - the objects container namename - the name of the objectpublic String put(String containerName, String name, Payload<?> payload)
put in interface ObjectStorageObjectServicecontainerName - the container namename - the name of the filepayload - the file payloadpublic String put(String containerName, String name, Payload<?> payload, ObjectPutOptions options)
put in interface ObjectStorageObjectServicecontainerName - the container namename - the name of the filepayload - the file payloadoptions - extended options to associate with this objectpublic ActionResponse delete(String containerName, String name)
ObjectStorageObjectServicedelete in interface ObjectStorageObjectServicecontainerName - the container namename - the name of the object (full path if directories are used)public ActionResponse delete(ObjectLocation location)
ObjectStorageObjectServicedelete in interface ObjectStorageObjectServicelocation - location containing container name and object namepublic ActionResponse delete(ObjectLocation location, ObjectDeleteOptions options)
ObjectStorageObjectServicedelete in interface ObjectStorageObjectServicelocation - location containing container name and object nameoptions - the deleting optionspublic String copy(ObjectLocation source, ObjectLocation dest)
copy in interface ObjectStorageObjectServicesource - the source container and object namedest - the destination container and object namepublic Map<String,String> getMetadata(ObjectLocation location)
ObjectStorageObjectServicegetMetadata in interface ObjectStorageObjectServicelocation - the object locationpublic Map<String,String> getMetadata(String containerName, String name)
ObjectStorageObjectServicegetMetadata in interface ObjectStorageObjectServicecontainerName - the container namename - the object namepublic boolean updateMetadata(ObjectLocation location, Map<String,String> metadata)
ObjectStorageObjectServiceupdateMetadata in interface ObjectStorageObjectServicelocation - the location of the object to create/update metadatametadata - the metadatapublic DLPayload download(String containerName, String name)
ObjectStorageObjectServicecontainerName and namedownload in interface ObjectStorageObjectServicecontainerName - the container namename - the object namepublic DLPayload download(String containerName, String name, DownloadOptions options)
ObjectStorageObjectServicecontainerName and namedownload in interface ObjectStorageObjectServicecontainerName - the container namename - the object nameoptions - the download optionspublic DLPayload download(ObjectLocation location, DownloadOptions options)
ObjectStorageObjectServicelocationdownload in interface ObjectStorageObjectServicelocation - the object locationoptions - the download optionsCopyright © 2017. All rights reserved.