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, size
removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
protected 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 ListBucketResponse
ListBucketOptions.getPrefix()
public String getDelimiter()
getDelimiter
in interface ListBucketResponse
public String getMarker()
getMarker
in interface ListBucketResponse
public String getNextMarker()
getNextMarker
in interface ListBucketResponse
public int getMaxKeys()
getMaxKeys
in interface ListBucketResponse
public String getPrefix()
getPrefix
in interface ListBucketResponse
public boolean isTruncated()
isTruncated
in interface ListBucketResponse
public String getName()
getName
in interface ListBucketResponse
public 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-2012 jclouds. All Rights Reserved.