Class BambooArtifactHttpTransport
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport
-
public class BambooArtifactHttpTransport extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BambooArtifactHttpTransport.EntityType
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_TYPE
static String
HEADER_AUTHENTICATION_TOKEN
static String
HEADER_CONTENT_DESCRIPTION
static String
RESULT_KEY
-
Constructor Summary
Constructors Constructor Description BambooArtifactHttpTransport(@NotNull AgentContext agentContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArtifactDefinitionContext
artifactDefinitionfromJson(String artifactJson)
static ArtifactData
artifactFromJson(Reader artifactJson)
ArtifactHandlerPublishingResult
publish(@NotNull org.apache.tools.ant.types.FileSet sourceFileSet, ResultKey resultKey, ArtifactDefinitionContext artifact, String artifactDescription, @NotNull BuildLogger buildLogger)
ArtifactRetrievalStatus
retrieve(ArtifactData artifactData, Path destinationPath, SecureToken authenticationToken, Function<ArtifactUnpackResult,ArtifactRetrievalStatus> successFactory)
static String
toJson(ArtifactData artifactData)
static String
toJson(ArtifactDefinitionContext artifact)
-
-
-
Field Detail
-
HEADER_CONTENT_DESCRIPTION
public static final String HEADER_CONTENT_DESCRIPTION
- See Also:
- Constant Field Values
-
RESULT_KEY
public static final String RESULT_KEY
- See Also:
- Constant Field Values
-
ENTITY_TYPE
public static final String ENTITY_TYPE
- See Also:
- Constant Field Values
-
HEADER_AUTHENTICATION_TOKEN
public static final String HEADER_AUTHENTICATION_TOKEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BambooArtifactHttpTransport
public BambooArtifactHttpTransport(@NotNull @NotNull AgentContext agentContext)
-
-
Method Detail
-
publish
public ArtifactHandlerPublishingResult publish(@NotNull @NotNull org.apache.tools.ant.types.FileSet sourceFileSet, ResultKey resultKey, ArtifactDefinitionContext artifact, String artifactDescription, @NotNull @NotNull BuildLogger buildLogger)
-
retrieve
public ArtifactRetrievalStatus retrieve(ArtifactData artifactData, Path destinationPath, SecureToken authenticationToken, Function<ArtifactUnpackResult,ArtifactRetrievalStatus> successFactory)
-
toJson
public static String toJson(ArtifactDefinitionContext artifact)
-
toJson
public static String toJson(ArtifactData artifactData)
-
artifactDefinitionfromJson
public static ArtifactDefinitionContext artifactDefinitionfromJson(String artifactJson)
-
artifactFromJson
public static ArtifactData artifactFromJson(Reader artifactJson)
-
-