public class S3ArtifactLinkDataProvider extends Object implements ArtifactLinkDataProvider
Constructor and Description |
---|
S3ArtifactLinkDataProvider(com.amazonaws.services.s3.AmazonS3 s3Client,
String bucketName,
String keyInBucket,
ArtifactHandlerConfigProvider artifactHandlerConfigProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
boolean |
exists(Iterable<String> pathComponents) |
String |
getRootUrl() |
long |
getSize() |
Date |
lastModified() |
Iterable<ArtifactFileData> |
listObjects(String subpath) |
public S3ArtifactLinkDataProvider(@NotNull com.amazonaws.services.s3.AmazonS3 s3Client, @NotNull String bucketName, @NotNull String keyInBucket, ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
@NotNull public String getRootUrl()
getRootUrl
in interface ArtifactLinkDataProvider
@NotNull public Iterable<ArtifactFileData> listObjects(@Nullable String subpath)
listObjects
in interface ArtifactLinkDataProvider
public Date lastModified()
lastModified
in interface ArtifactLinkDataProvider
public long getSize()
getSize
in interface ArtifactLinkDataProvider
public boolean exists()
exists
in interface ArtifactLinkDataProvider
public boolean exists(Iterable<String> pathComponents)
exists
in interface ArtifactLinkDataProvider
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.