org.javaswift.joss.swift
Class SwiftContainer

java.lang.Object
  extended by org.javaswift.joss.swift.SwiftContainer
All Implemented Interfaces:
ListSubject

public class SwiftContainer
extends Object
implements ListSubject


Constructor Summary
SwiftContainer(String name)
           
 
Method Summary
 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<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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwiftContainer

public SwiftContainer(String name)
Method Detail

getCount

public int getCount()

getBytesUsed

public long getBytesUsed()

getName

public String getName()
Specified by:
getName in interface ListSubject

metadataSetFromHeaders

public void metadataSetFromHeaders()
Description copied from interface: ListSubject
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.

Specified by:
metadataSetFromHeaders in interface ListSubject

getInfo

public ContainerInformation getInfo()

saveMetadata

public SwiftResult<Object> saveMetadata(Collection<? extends Header> headers)

setContainerPrivacy

public SwiftResult<String[]> setContainerPrivacy(boolean publicContainer)

listObjects

public SwiftResult<Collection<StoredObject>> listObjects(Container container,
                                                         ListInstructions listInstructions)

getObject

public SwiftStoredObject getObject(String name)

isPublicContainer

public boolean isPublicContainer()

createObject

public SwiftStoredObject createObject(String name)

deleteObject

public void deleteObject(String name)

getAllObjects

public Collection<SwiftStoredObject> getAllObjects()


Copyright © 2012-2014 42 BV. All Rights Reserved.