public class ListBucketResponseImpl extends LinkedHashSet<ObjectMetadata> implements ListBucketResponse
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
commonPrefixes |
protected String |
delimiter |
protected String |
marker |
protected int |
maxKeys |
protected String |
name |
protected String |
nextMarker |
protected String |
prefix |
protected boolean |
truncated |
| Constructor and Description |
|---|
ListBucketResponseImpl(String name,
Iterable<ObjectMetadata> contents,
String prefix,
String marker,
String nextMarker,
int maxKeys,
String delimiter,
boolean isTruncated,
Set<String> commonPrefixes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Set<String> |
getCommonPrefixes()
Example:
if the following keys are in the bucket
a/1/a
a/1/b a/2/a a/2/b and prefix is set to a/ and delimiter is set to / then
commonprefixes would return 1,2 |
String |
getDelimiter()
Causes keys that contain the same string between the prefix and the first occurrence of the
delimiter to be rolled up into a single result element in the CommonPrefixes collection.
|
String |
getMarker() |
int |
getMaxKeys()
The maximum number of keys you'd like to see in the response body.
|
String |
getName()
name of the Bucket
|
String |
getNextMarker()
Indicates where in the bucket to begin listing.
|
String |
getPrefix()
Limits the response to keys which begin with the indicated prefix.
|
int |
hashCode() |
boolean |
isTruncated()
There are more then maxKeys available
|
add, clear, clone, contains, isEmpty, iterator, remove, sizeremoveAlladdAll, containsAll, retainAll, toArray, toArray, toStringprotected final String name
protected final String prefix
protected final int maxKeys
protected final String delimiter
protected final String marker
protected final String nextMarker
protected final boolean truncated
public Set<String> getCommonPrefixes()
a/ and delimiter is set to / then
commonprefixes would return 1,2getCommonPrefixes in interface ListBucketResponseListBucketOptions.getPrefix()public String getDelimiter()
getDelimiter in interface ListBucketResponsepublic String getMarker()
getMarker in interface ListBucketResponsepublic String getNextMarker()
getNextMarker in interface ListBucketResponsepublic int getMaxKeys()
getMaxKeys in interface ListBucketResponsepublic String getPrefix()
getPrefix in interface ListBucketResponsepublic boolean isTruncated()
isTruncated in interface ListBucketResponsepublic String getName()
getName in interface ListBucketResponsepublic int hashCode()
hashCode in interface Collection<ObjectMetadata>hashCode in interface Set<ObjectMetadata>hashCode in class AbstractSet<ObjectMetadata>public boolean equals(Object obj)
equals in interface Collection<ObjectMetadata>equals in interface Set<ObjectMetadata>equals in class AbstractSet<ObjectMetadata>Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.