Class ArtifactHandlerResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.admin.artifacthandler.ArtifactHandlerResource
-
public class ArtifactHandlerResource extends Object
REST resource to manage artifact handlers in bamboo. It includes a REST endpoint for each type artifact handlers respectively. GET and PUT methods are supported. Supported artifact handler types:- Server-Local Artifact Handler
- Bamboo Remote Handler
- Amazon S3
- Agent-Local Artifact Handler
- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description ArtifactHandlerResource(RestArtifactHandlerConversionFunction function, ArtifactHandlersService artifactHandlersService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestArtifactHandler
getAgentLocalArtifactHandler(Expansion expansion, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
getBambooRemoteArtifactHandler(Expansion expansion, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
getS3ArtifactHandler(Expansion expansion, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
getSftpArtifactHandler(Expansion expansion, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
updateAgentLocalHandler(@NotNull RestArtifactHandler restArtifactHandler, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
updateBambooRemoteHandler(@NotNull RestArtifactHandler restArtifactHandler, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
updateS3Handler(@NotNull RestArtifactHandler restArtifactHandler, javax.ws.rs.core.UriInfo uriInfo)
RestArtifactHandler
updateSftpHandler(@NotNull RestArtifactHandler restArtifactHandler, javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Constructor Detail
-
ArtifactHandlerResource
@Inject public ArtifactHandlerResource(RestArtifactHandlerConversionFunction function, ArtifactHandlersService artifactHandlersService)
-
-
Method Detail
-
getBambooRemoteArtifactHandler
public RestArtifactHandler getBambooRemoteArtifactHandler(@Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
updateBambooRemoteHandler
public RestArtifactHandler updateBambooRemoteHandler(@NotNull @NotNull RestArtifactHandler restArtifactHandler, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
getSftpArtifactHandler
public RestArtifactHandler getSftpArtifactHandler(@Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
updateSftpHandler
public RestArtifactHandler updateSftpHandler(@NotNull @NotNull RestArtifactHandler restArtifactHandler, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
getAgentLocalArtifactHandler
public RestArtifactHandler getAgentLocalArtifactHandler(@Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
updateAgentLocalHandler
public RestArtifactHandler updateAgentLocalHandler(@NotNull @NotNull RestArtifactHandler restArtifactHandler, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
getS3ArtifactHandler
public RestArtifactHandler getS3ArtifactHandler(@Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
updateS3Handler
public RestArtifactHandler updateS3Handler(@NotNull @NotNull RestArtifactHandler restArtifactHandler, @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
- Throws:
WebValidationException
-
-