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

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

Introduction

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

Prototype

public void setPrefix(String prefix) 

Source Link

Document

Sets the optional prefix parameter restricting the response to keys that begin with the specified prefix.

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);//from  w  w  w  .  j  a v  a 2 s  .  c  o m
    if (!Util.isBlank(path.getPrefix()))
        req.setPrefix(path.getPrefix());

    return req;

}