Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ private void bindAWSClient(URI name, boolean dtEnabled) throws IOException {
S3ClientFactory.S3ClientCreationParameters parameters = null;
parameters = new S3ClientFactory.S3ClientCreationParameters()
.withCredentialSet(credentials)
.withPath(name)
.withEndpoint(endpoint)
.withMetrics(statisticsContext.newStatisticsFromAwsSdk())
.withPathStyleAccess(conf.getBoolean(PATH_STYLE_ACCESS, false))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ final class S3ClientCreationParameters {
*/
private String userAgentSuffix = "";

/**
* Path to s3a bucket.
*/
private URI pathUri = "";

/**
* List of request handlers to include in the chain
* of request execution in the SDK.
Expand Down Expand Up @@ -214,6 +219,22 @@ public S3ClientCreationParameters withUserAgentSuffix(
return this;
}

/**
* Set path.
* @param value new value
* @return the path
*/

public S3ClientCreationParameters withPath(
final URI value) {
pathUri = value;
return this;
}

public URI getPath() {
return pathUri;
}

public String getEndpoint() {
return endpoint;
}
Expand Down