public class BambooArtifactHttpTransport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BambooArtifactHttpTransport.EntityType |
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_TYPE |
static String |
HEADER_AUTHENTICATION_TOKEN |
static String |
HEADER_CONTENT_DESCRIPTION |
static String |
RESULT_KEY |
Constructor and Description |
---|
BambooArtifactHttpTransport(@NotNull AgentContext agentContext) |
Modifier and Type | Method and 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) |
public static final String HEADER_CONTENT_DESCRIPTION
public static final String RESULT_KEY
public static final String ENTITY_TYPE
public static final String HEADER_AUTHENTICATION_TOKEN
public BambooArtifactHttpTransport(@NotNull @NotNull AgentContext agentContext)
public ArtifactHandlerPublishingResult publish(@NotNull @NotNull org.apache.tools.ant.types.FileSet sourceFileSet, ResultKey resultKey, ArtifactDefinitionContext artifact, String artifactDescription, @NotNull @NotNull BuildLogger buildLogger)
public ArtifactRetrievalStatus retrieve(ArtifactData artifactData, Path destinationPath, SecureToken authenticationToken, Function<ArtifactUnpackResult,ArtifactRetrievalStatus> successFactory)
public static String toJson(ArtifactDefinitionContext artifact)
public static String toJson(ArtifactData artifactData)
public static ArtifactDefinitionContext artifactDefinitionfromJson(String artifactJson)
public static ArtifactData artifactFromJson(Reader artifactJson)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.