org.jets3t.service
Class MultipartUploadChunk

java.lang.Object
  extended by org.jets3t.service.MultipartUploadChunk

public class MultipartUploadChunk
extends java.lang.Object

Stores a "chunk" of MultipartUpload returned from a 'multipart list uploads' command - this particular chunk may or may not include all the multipart upload started in a bucket. This class contains an array of MultipartUpload and a the last key name returned by a prior call to the method StorageService.listObjectsChunked(String, String, String, long, String).


Field Summary
protected  java.lang.String[] commonPrefixes
           
protected  java.lang.String delimiter
           
protected  java.lang.String prefix
           
protected  java.lang.String priorLastIdMarker
           
protected  java.lang.String priorLastKey
           
protected  MultipartUpload[] uploads
           
 
Constructor Summary
MultipartUploadChunk(java.lang.String prefix, java.lang.String delimiter, MultipartUpload[] uploads, java.lang.String[] commonPrefixes, java.lang.String priorLastKey, java.lang.String priorLastIdMarker)
           
 
Method Summary
 java.lang.String[] getCommonPrefixes()
           
 java.lang.String getDelimiter()
           
 java.lang.String getPrefix()
           
 java.lang.String getPriorLastIdMarker()
           
 java.lang.String getPriorLastKey()
           
 MultipartUpload[] getUploads()
           
 boolean isListingComplete()
          A convenience method to check whether a listing of uploads is complete (true) or there are more uploads available (false).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

protected java.lang.String prefix

delimiter

protected java.lang.String delimiter

uploads

protected MultipartUpload[] uploads

commonPrefixes

protected java.lang.String[] commonPrefixes

priorLastKey

protected java.lang.String priorLastKey

priorLastIdMarker

protected java.lang.String priorLastIdMarker
Constructor Detail

MultipartUploadChunk

public MultipartUploadChunk(java.lang.String prefix,
                            java.lang.String delimiter,
                            MultipartUpload[] uploads,
                            java.lang.String[] commonPrefixes,
                            java.lang.String priorLastKey,
                            java.lang.String priorLastIdMarker)
Method Detail

getUploads

public MultipartUpload[] getUploads()
Returns:
the uploads in this chunk.

getCommonPrefixes

public java.lang.String[] getCommonPrefixes()
Returns:
the common prefixes in this chunk.

getPriorLastKey

public java.lang.String getPriorLastKey()
Returns:
the last key returned by the previous chunk if that chunk was incomplete, null otherwise.

getPriorLastIdMarker

public java.lang.String getPriorLastIdMarker()
Returns:
the last id marker returned by the previous chunk if that chunk was incomplete, null otherwise.

getPrefix

public java.lang.String getPrefix()
Returns:
the prefix applied when this upload chunk was generated. If no prefix was applied, this method will return null.

getDelimiter

public java.lang.String getDelimiter()
Returns:
the delimiter applied when this upload chunk was generated. If no delimiter was applied, this method will return null.

isListingComplete

public boolean isListingComplete()
A convenience method to check whether a listing of uploads is complete (true) or there are more uploads available (false). Just a synonym for getPriorLastKey() == null && getPriorLastIdMarker()==null}.

Returns:
true if the listing is complete and there are no more unlisted uploads, false if follow-up requests will return more uploads.