public class SwiftContainer extends Object implements ListSubject
| Constructor and Description |
|---|
SwiftContainer(String name) |
| Modifier and Type | Method and Description |
|---|---|
SwiftStoredObject |
createObject(String name) |
void |
deleteObject(String name) |
Collection<SwiftStoredObject> |
getAllObjects() |
long |
getBytesUsed() |
int |
getCount() |
ContainerInformation |
getInfo() |
String |
getName() |
SwiftStoredObject |
getObject(String name) |
boolean |
isPublicContainer() |
SwiftResult<Collection<DirectoryOrObject>> |
listDirectories(Container container,
ListInstructions listInstructions) |
SwiftResult<Collection<StoredObject>> |
listObjects(Container container,
ListInstructions listInstructions) |
void |
metadataSetFromHeaders()
Declares to the ListSubject that a number of fields have been read from the list operation
and therefore do not have to be fetched individually, unless caching is turned off.
|
SwiftResult<Object> |
saveMetadata(Collection<? extends Header> headers) |
SwiftResult<String[]> |
setContainerPrivacy(boolean publicContainer) |
public SwiftContainer(String name)
public int getCount()
public long getBytesUsed()
public String getName()
getName in interface ListSubjectpublic void metadataSetFromHeaders()
ListSubjectmetadataSetFromHeaders in interface ListSubjectpublic ContainerInformation getInfo()
public SwiftResult<Object> saveMetadata(Collection<? extends Header> headers)
public SwiftResult<String[]> setContainerPrivacy(boolean publicContainer)
public SwiftResult<Collection<DirectoryOrObject>> listDirectories(Container container, ListInstructions listInstructions)
public SwiftResult<Collection<StoredObject>> listObjects(Container container, ListInstructions listInstructions)
public SwiftStoredObject getObject(String name)
public boolean isPublicContainer()
public SwiftStoredObject createObject(String name)
public void deleteObject(String name)
public Collection<SwiftStoredObject> getAllObjects()
Copyright © 2012-2017 42 BV. All Rights Reserved.