Example usage for com.amazonaws.services.s3.model ListVersionsRequest setDelimiter

List of usage examples for com.amazonaws.services.s3.model ListVersionsRequest setDelimiter

Introduction

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

Prototype

public void setDelimiter(String delimiter) 

Source Link

Document

Sets the optional delimiter parameter that causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element in the VersionListing#getCommonPrefixes() list.

Usage

From source file:org.xmlsh.aws.util.AWSS3Command.java

License:BSD License

protected ListVersionsRequest getListVersionsRequest(S3Path path, String delim) {
    ListVersionsRequest req = new ListVersionsRequest();
    req.setBucketName(path.getBucket());
    if (!Util.isBlank(delim))
        req.setDelimiter(delim);
    if (!Util.isBlank(path.getPrefix()))
        req.setPrefix(path.getPrefix());

    return req;//from w  ww  .  jav  a2s .  c om

}