Interface IArtifactURLBuilder
- All Known Implementing Classes:
AbstractArtifactURLBuilder,DirectArtifactURLBuilder,NexusContentServiceArtifactURLBuilder
public interface IArtifactURLBuilder
This interface is to allow different implementation on how to retrieve an artifact from a Nexus repository. Therefore
this interface provides functionality to define the artifact details and a
build() method to create the URL
for the given artifact.- Author:
- stephan.watermeyer, Diebold Nixdorf
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Based on the given details the URL for the artifact is created.build(boolean pOnlyBaseURL) Based on the given details the URL for the artifact is created.setArtifactId(String artifactId) setClassifier(String classifier) setGroupId(String groupId) setNexusURL(String repoURL) setPackaging(String extension) setRepositoryId(String repositoryId) setVersion(String version)
-
Method Details
-
build
String build()Based on the given details the URL for the artifact is created.- Returns:
- an URL where the artifact can be downloaded.
-
build
Based on the given details the URL for the artifact is created.- Parameters:
pOnlyBaseURL-trueif only the URI should be returned.- Returns:
- the URL or the folder where the artifact can be found or downloaded.
-
setNexusURL
-
setPackaging
-
setClassifier
-
setArtifactId
-
setGroupId
-
setVersion
-
setRepositoryId
-