Example usage for com.amazonaws.services.s3.model ListObjectsV2Request withContinuationToken

List of usage examples for com.amazonaws.services.s3.model ListObjectsV2Request withContinuationToken

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model ListObjectsV2Request withContinuationToken.

Prototype

public ListObjectsV2Request withContinuationToken(String continuationToken) 

Source Link

Document

Sets the optional continuation token.

Usage

From source file:org.exem.flamingo.web.filesystem.s3.S3BrowserServiceImpl.java

License:Apache License

@Override
public ListObjectsV2Result listObjects(String bucketName, String prefix, String continuationToken) {
    ListObjectsV2Request request = new ListObjectsV2Request();
    request.withBucketName(bucketName).withPrefix(prefix).withDelimiter(S3Constansts.DELIMITER);

    if (StringUtils.isNotEmpty(continuationToken)) {
        request.withContinuationToken(continuationToken);
    }/*from w  w  w  . ja v a  2 s  .co  m*/

    return this.s3.listObjectsV2(request);
}