org.javaswift.joss.swift
Class SwiftStoredObject

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

public class SwiftStoredObject
extends Object
implements ListSubject


Constructor Summary
SwiftStoredObject(String name)
           
 
Method Summary
 SwiftResult<Object> copyFrom(SwiftStoredObject sourceObject)
           
 SwiftResult<byte[]> downloadObject(DownloadInstructions downloadInstructions)
           
 long getBytesUsed()
           
 byte[] getContent()
           
 ObjectContentType getContentType()
           
 Etag getEtag()
           
 ObjectInformation getInfo()
           
 Date getLastModified()
           
 String getName()
           
 ObjectManifest getObjectManifest()
           
 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)
           
 void setDeleteAt(DeleteAt deleteAt)
           
 SwiftResult<Object> uploadObject(UploadInstructions uploadInstructions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwiftStoredObject

public SwiftStoredObject(String name)
Method Detail

getBytesUsed

public long getBytesUsed()

getEtag

public Etag getEtag()

getContentType

public ObjectContentType getContentType()

getLastModified

public Date getLastModified()

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 ObjectInformation getInfo()

uploadObject

public SwiftResult<Object> uploadObject(UploadInstructions uploadInstructions)

copyFrom

public SwiftResult<Object> copyFrom(SwiftStoredObject sourceObject)

downloadObject

public SwiftResult<byte[]> downloadObject(DownloadInstructions downloadInstructions)

saveMetadata

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

getContent

public byte[] getContent()

getObjectManifest

public ObjectManifest getObjectManifest()

setDeleteAt

public void setDeleteAt(DeleteAt deleteAt)


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