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 abuild()
method to create the URL for the given artifact.- Author:
- stephan.watermeyer, Diebold Nixdorf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
build()
Based on the given details the URL for the artifact is created.String
build(boolean pOnlyBaseURL)
Based on the given details the URL for the artifact is created.IArtifactURLBuilder
setArtifactId(String artifactId)
IArtifactURLBuilder
setClassifier(String classifier)
IArtifactURLBuilder
setGroupId(String groupId)
IArtifactURLBuilder
setNexusURL(String repoURL)
IArtifactURLBuilder
setPackaging(String extension)
AbstractArtifactURLBuilder
setRepositoryId(String repositoryId)
IArtifactURLBuilder
setVersion(String version)
-
-
-
Method Detail
-
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
String build(boolean pOnlyBaseURL)
Based on the given details the URL for the artifact is created.- Parameters:
pOnlyBaseURL
-true
if only the URI should be returned.- Returns:
- the URL or the folder where the artifact can be found or downloaded.
-
setNexusURL
IArtifactURLBuilder setNexusURL(String repoURL)
-
setPackaging
IArtifactURLBuilder setPackaging(String extension)
-
setClassifier
IArtifactURLBuilder setClassifier(String classifier)
-
setArtifactId
IArtifactURLBuilder setArtifactId(String artifactId)
-
setGroupId
IArtifactURLBuilder setGroupId(String groupId)
-
setVersion
IArtifactURLBuilder setVersion(String version)
-
setRepositoryId
AbstractArtifactURLBuilder setRepositoryId(String repositoryId)
-
-