Class AbstractArtifactURLBuilder
- java.lang.Object
-
- org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.AbstractArtifactURLBuilder
-
- All Implemented Interfaces:
IArtifactURLBuilder
- Direct Known Subclasses:
DirectArtifactURLBuilder
,NexusContentServiceArtifactURLBuilder
public abstract class AbstractArtifactURLBuilder extends Object implements IArtifactURLBuilder
This class provides basic functionality to allow the creation of a valid download link for a given artifact.- Author:
- stephan.watermeyer, Diebold Nixdorf
-
-
Constructor Summary
Constructors Constructor Description AbstractArtifactURLBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Based on the given details the URL for the artifact is created.String
getArtifactId()
String
getClassifier()
String
getGroupId()
String
getNexusURL()
String
getPackaging()
String
getRepositoryId()
String
getVersion()
IArtifactURLBuilder
setArtifactId(String artifactId)
IArtifactURLBuilder
setClassifier(String classifier)
IArtifactURLBuilder
setGroupId(String groupId)
IArtifactURLBuilder
setNexusURL(String repoURL)
IArtifactURLBuilder
setPackaging(String packaging)
AbstractArtifactURLBuilder
setRepositoryId(String repositoryId)
IArtifactURLBuilder
setVersion(String version)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.IArtifactURLBuilder
build
-
-
-
-
Method Detail
-
build
public String build()
Description copied from interface:IArtifactURLBuilder
Based on the given details the URL for the artifact is created.- Specified by:
build
in interfaceIArtifactURLBuilder
- Returns:
- an URL where the artifact can be downloaded.
-
getNexusURL
public String getNexusURL()
-
setNexusURL
public IArtifactURLBuilder setNexusURL(String repoURL)
- Specified by:
setNexusURL
in interfaceIArtifactURLBuilder
-
getGroupId
public String getGroupId()
-
getArtifactId
public String getArtifactId()
-
getVersion
public String getVersion()
-
getClassifier
public String getClassifier()
-
getPackaging
public String getPackaging()
-
getRepositoryId
public String getRepositoryId()
-
setRepositoryId
public AbstractArtifactURLBuilder setRepositoryId(String repositoryId)
- Specified by:
setRepositoryId
in interfaceIArtifactURLBuilder
-
setPackaging
public IArtifactURLBuilder setPackaging(String packaging)
- Specified by:
setPackaging
in interfaceIArtifactURLBuilder
-
setClassifier
public IArtifactURLBuilder setClassifier(String classifier)
- Specified by:
setClassifier
in interfaceIArtifactURLBuilder
-
setArtifactId
public IArtifactURLBuilder setArtifactId(String artifactId)
- Specified by:
setArtifactId
in interfaceIArtifactURLBuilder
-
setGroupId
public IArtifactURLBuilder setGroupId(String groupId)
- Specified by:
setGroupId
in interfaceIArtifactURLBuilder
-
setVersion
public IArtifactURLBuilder setVersion(String version)
- Specified by:
setVersion
in interfaceIArtifactURLBuilder
-
-