Package org.jclouds.s3.domain.internal
Class ListBucketResponseImpl
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<ObjectMetadata>
,Collection<ObjectMetadata>
,SequencedCollection<ObjectMetadata>
,SequencedSet<ObjectMetadata>
,Set<ObjectMetadata>
,ListBucketResponse
public class ListBucketResponseImpl
extends LinkedHashSet<ObjectMetadata>
implements ListBucketResponse
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionListBucketResponseImpl
(String name, Iterable<ObjectMetadata> contents, String prefix, String marker, String nextMarker, int maxKeys, String delimiter, boolean isTruncated, Set<String> commonPrefixes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Example: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.int
The maximum number of keys you'd like to see in the response body.getName()
name of the BucketIndicates where in the bucket to begin listing.Limits the response to keys which begin with the indicated prefix.int
hashCode()
boolean
There are more then maxKeys availableMethods inherited from class java.util.LinkedHashSet
addFirst, addLast, getFirst, getLast, newLinkedHashSet, removeFirst, removeLast, reversed, spliterator
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, toArray, toArray
Methods inherited from class java.util.AbstractSet
removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
name
-
prefix
-
maxKeys
protected final int maxKeys -
delimiter
-
marker
-
nextMarker
-
commonPrefixes
-
truncated
protected final boolean truncated
-
-
Constructor Details
-
ListBucketResponseImpl
-
-
Method Details
-
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 toa/
and delimiter is set to/
then commonprefixes would return 1,2- Specified by:
getCommonPrefixes
in interfaceListBucketResponse
- See Also:
-
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. These rolled-up keys are not returned elsewhere in the response.- Specified by:
getDelimiter
in interfaceListBucketResponse
-
getMarker
- Specified by:
getMarker
in interfaceListBucketResponse
-
getNextMarker
Indicates where in the bucket to begin listing. The list will only include keys that occur lexicographically after marker. This is convenient for pagination: To get the next page of results use the last key of the current page as the marker.- Specified by:
getNextMarker
in interfaceListBucketResponse
-
getMaxKeys
public int getMaxKeys()The maximum number of keys you'd like to see in the response body. The server might return fewer than this many keys, but will not return more.- Specified by:
getMaxKeys
in interfaceListBucketResponse
-
getPrefix
Limits the response to keys which begin with the indicated prefix. You can use prefixes to separate a bucket into different sets of keys in a way similar to how a file system uses folders.- Specified by:
getPrefix
in interfaceListBucketResponse
-
isTruncated
public boolean isTruncated()There are more then maxKeys available- Specified by:
isTruncated
in interfaceListBucketResponse
-
getName
name of the Bucket- Specified by:
getName
in interfaceListBucketResponse
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<ObjectMetadata>
- Specified by:
hashCode
in interfaceSet<ObjectMetadata>
- Overrides:
hashCode
in classAbstractSet<ObjectMetadata>
-
equals
- Specified by:
equals
in interfaceCollection<ObjectMetadata>
- Specified by:
equals
in interfaceSet<ObjectMetadata>
- Overrides:
equals
in classAbstractSet<ObjectMetadata>
-