|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazonaws.services.s3.model.ObjectListing
public class ObjectListing
Contains the results of listing the objects in an Amazon S3 bucket, including
a list of S3ObjectSummary objects describing the objects stored in
the bucket, a list of common prefixes (if a delimiter was specified in the
request), as well as information describing if this is a complete or partial
listing and the the original request parameters.
AmazonS3.listObjects(String, String),
AmazonS3.listObjects(ListObjectsRequest),
AmazonS3.listNextBatchOfObjects(ObjectListing)| Constructor Summary | |
|---|---|
ObjectListing()
|
|
| Method Summary | |
|---|---|
String |
getBucketName()
Returns the name of the Amazon S3 bucket containing the objects listed in this S3ObjectListing. |
List<String> |
getCommonPrefixes()
Returns the common prefixes included in this object listing. |
String |
getDelimiter()
Returns the delimiter parameter originally used to request this object listing, or null if none was specified. |
String |
getMarker()
The marker parameter originally used to request this object listing, or null if no marker was specified. |
int |
getMaxKeys()
Returns the maxKeys parameter originally used to request this object listing, or the default maxKeys value provided by Amazon S3 if the requester didn't specify a value. |
String |
getNextMarker()
For truncated object listings (see isTruncated())
returns the marker to use in the next listObjects request in order to see
the next page of results. |
List<S3ObjectSummary> |
getObjectSummaries()
Returns the list of object summaries describing the objects stored in the S3 bucket. |
String |
getPrefix()
The prefix parameter originally used to request this object listing, or null if no prefix was specified. |
boolean |
isTruncated()
Returns true if this object listing is not complete and indicates that the caller needs to make additional calls to Amazon S3 to get more results. |
void |
setBucketName(String bucketName)
Not intended for direct use by callers. |
void |
setCommonPrefixes(List<String> commonPrefixes)
Not intended for direct use by callers. |
void |
setDelimiter(String delimiter)
Not intended for direct use by callers. |
void |
setMarker(String marker)
Not intended for direct use by callers. |
void |
setMaxKeys(int maxKeys)
Not intended for direct use by callers. |
void |
setNextMarker(String nextMarker)
Not intended for direct use by callers. |
void |
setPrefix(String prefix)
Not intended for direct use by callers. |
void |
setTruncated(boolean isTruncated)
Not intended for direct use by callers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectListing()
| Method Detail |
|---|
public List<S3ObjectSummary> getObjectSummaries()
AmazonS3.listNextBatchOfObjects(ObjectListing) to get
additional results. Callers should always check the
isTruncated() method to determine if a listing is truncated or
not.
public List<String> getCommonPrefixes()
Each common prefix represents a set of keys in the S3 bucket that have been condensed and omitted from the object summary results. This allows applications to organize and browse their keys hierarchically, much like how you would organize your files into directories in a file system.
For example, consider a bucket that contains the keys:
public void setCommonPrefixes(List<String> commonPrefixes)
commonPrefixes - The common prefixes for this object listing.public String getNextMarker()
isTruncated())
returns the marker to use in the next listObjects request in order to see
the next page of results. If an object listing is not truncated, this
method will return null since there is no need for a next marker. For
truncated requests, this value is equal to the greatest
(lexicographically) value of the object keys and common prefixes included
in this listing.
public void setNextMarker(String nextMarker)
nextMarker - The marker to use in the next listObjects request in order to
see the next page of results for a truncated object listing.public String getBucketName()
public void setBucketName(String bucketName)
bucketName - The name of the Amazon S3 bucket containing the objects listed
in this S3ObjectListing.public String getPrefix()
public void setPrefix(String prefix)
prefix - The prefix parameter originally used to request this object
listing.public String getMarker()
public void setMarker(String marker)
marker - The marker parameter originally used to request this object
listing.public int getMaxKeys()
public void setMaxKeys(int maxKeys)
maxKeys - he maxKeys parameter originally used to request this object
listing, or the default maxKeys value applied by Amazon S3 if
the requester didn't specify a value.public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter - The delimiter parameter originally used to request this object
listing.public boolean isTruncated()
public void setTruncated(boolean isTruncated)
isTruncated - True if this object listing is not complete and the
caller needs to make additional S3 calls to get additional
object summaries or common prefixes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||