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