com.atlassian.bamboo.build.artifact
Class TrampolineUrlArtifactLinkDataProvider
java.lang.Object
com.atlassian.bamboo.build.artifact.TrampolineUrlArtifactLinkDataProvider
- All Implemented Interfaces:
- ArtifactLinkDataProvider
public class TrampolineUrlArtifactLinkDataProvider
- extends Object
- implements ArtifactLinkDataProvider
This ArtifactLinkDataProvider transforms ArtifactFileData returned by delegate by providing URL to ArtifactUrlRedirect action
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrampolineUrlArtifactLinkDataProvider
public TrampolineUrlArtifactLinkDataProvider(ArtifactLinkDataProvider artifactLinkDataProvider)
getRootUrl
@NotNull
public String getRootUrl()
- Specified by:
getRootUrl
in interface ArtifactLinkDataProvider
listObjects
@NotNull
public Iterable<ArtifactFileData> listObjects(@Nullable
String subpath)
- Specified by:
listObjects
in interface ArtifactLinkDataProvider
lastModified
@Nullable
public Date lastModified()
- Specified by:
lastModified
in interface ArtifactLinkDataProvider
getSize
public long getSize()
- Specified by:
getSize
in interface ArtifactLinkDataProvider
exists
public boolean exists()
- Specified by:
exists
in interface ArtifactLinkDataProvider
exists
public boolean exists(Iterable<String> pathComponents)
- Specified by:
exists
in interface ArtifactLinkDataProvider
setPlanResultKey
public void setPlanResultKey(PlanResultKey planResultKey)
setArtifactName
public void setArtifactName(String artifactName)
getDelegate
public ArtifactLinkDataProvider getDelegate()
decorate
public static ArtifactLinkDataProvider decorate(ArtifactLinkDataProvider artifactLinkDataProvider)
createTrampolineUrl
public static String createTrampolineUrl(PlanResultKey planResultKey,
String artifactName,
@Nullable
String tag)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.