public class DefaultBucketService extends Object implements BucketService
Constructor and Description |
---|
DefaultBucketService() |
Modifier and Type | Method and Description |
---|---|
protected List<com.amazonaws.services.s3.model.ObjectListing> |
accumulateObjectListings(ObjectListingsContext context,
ListingRequest request,
long startTime,
org.kuali.common.util.Counter counter)
Examine an S3 bucket (potentially recursively) for information about the "directories" and objects it contains.
|
protected ListingRequest |
clone(ListingRequest request,
String prefix) |
protected void |
doSubDirectory(ObjectListingsContext context,
String subDirectory,
List<com.amazonaws.services.s3.model.ObjectListing> listings,
long startTime,
org.kuali.common.util.Counter counter) |
protected com.amazonaws.services.s3.model.ListObjectsRequest |
getListObjectsRequest(ObjectListingsContext context,
String prefix) |
protected com.amazonaws.services.s3.model.ListObjectsRequest |
getListObjectsRequest(String bucket,
String prefix,
String delimiter,
Integer maxKeys) |
protected com.amazonaws.services.s3.model.ObjectListing |
getObjectListing(ObjectListingsContext context,
String prefix,
org.kuali.common.util.Counter counter) |
ListingResult |
getObjectListings(ObjectListingsContext context)
Examine an S3 bucket and return ObjectListings
|
protected String |
getPrefix(String prefix,
String delimiter)
If
prefix does not end with delimiter , append it. |
protected String |
getSuffixPattern(String pattern,
String delimiter)
Make sure
pattern is bracketed by delimiter . |
protected boolean |
isEndsWithMatch(String prefix,
String pattern,
String delimiter) |
protected boolean |
isExclude(ObjectListingsContext context,
String prefix) |
protected boolean |
isInclude(ObjectListingsContext context,
String prefix) |
protected boolean |
isRecurse(ObjectListingsContext context,
String prefix) |
protected void |
validateState(ListingRequest request,
long startTime,
org.kuali.common.util.Counter counter)
Make sure none of the configured limits have been exceeded.
|
public DefaultBucketService()
public ListingResult getObjectListings(ObjectListingsContext context)
BucketService
getObjectListings
in interface BucketService
protected List<com.amazonaws.services.s3.model.ObjectListing> accumulateObjectListings(ObjectListingsContext context, ListingRequest request, long startTime, org.kuali.common.util.Counter counter)
protected void validateState(ListingRequest request, long startTime, org.kuali.common.util.Counter counter)
protected com.amazonaws.services.s3.model.ObjectListing getObjectListing(ObjectListingsContext context, String prefix, org.kuali.common.util.Counter counter)
protected void doSubDirectory(ObjectListingsContext context, String subDirectory, List<com.amazonaws.services.s3.model.ObjectListing> listings, long startTime, org.kuali.common.util.Counter counter)
protected String getPrefix(String prefix, String delimiter)
prefix
does not end with delimiter
, append it. If prefix
is blank or prefix==delimiter
return null
protected String getSuffixPattern(String pattern, String delimiter)
pattern
is bracketed by delimiter
.
apidocs -> /apidocs/ apidocs/ -> /apidocs/ /apidocs -> /apidocs/ /apidocs/ -> /apidocs/
protected boolean isEndsWithMatch(String prefix, String pattern, String delimiter)
protected boolean isExclude(ObjectListingsContext context, String prefix)
protected boolean isInclude(ObjectListingsContext context, String prefix)
protected boolean isRecurse(ObjectListingsContext context, String prefix)
protected ListingRequest clone(ListingRequest request, String prefix)
protected com.amazonaws.services.s3.model.ListObjectsRequest getListObjectsRequest(ObjectListingsContext context, String prefix)
protected com.amazonaws.services.s3.model.ListObjectsRequest getListObjectsRequest(String bucket, String prefix, String delimiter, Integer maxKeys)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.