Class RESTfulParameterBuilder
- java.lang.Object
-
- org.jenkinsci.plugins.maven_artifact_choicelistprovider.RESTfulParameterBuilder
-
- Direct Known Subclasses:
Nexus3RESTfulParameterBuilderForGenericArtifacts
,Nexus3RESTfulParameterBuilderForMaven2Artifacts
,StandardRESTfulParameterBuilder
public abstract class RESTfulParameterBuilder extends Object
Creates URL Parameters for a Nexus, Nexus3 and Artifactory Repository.- Author:
- stephan.watermeyer, Diebold Nixdorf
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASSIFIER_ALL
static String
PACKAGING_ALL
-
Constructor Summary
Constructors Constructor Description RESTfulParameterBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.MultivaluedMap<String,String>
create(String pRepositoryId, String pName)
javax.ws.rs.core.MultivaluedMap<String,String>
create(String pRepositoryId, String pGroupId, String pArtifactId, String pPackaging, ValidAndInvalidClassifier pClassifier)
javax.ws.rs.core.MultivaluedMap<String,String>
create(String pRepositoryId, String pGroupId, String pArtifactId, String pPackaging, ValidAndInvalidClassifier pClassifier, String pToken)
Creates the parameter list for the RESTful service.abstract String
getArtifactId()
abstract String
getClassifier()
abstract String
getContinuationToken()
abstract String
getGroupId()
abstract String
getPackaging()
abstract String
getRepositoryId()
abstract String
getSortOrder()
-
-
-
Field Detail
-
PACKAGING_ALL
public static final String PACKAGING_ALL
- See Also:
- Constant Field Values
-
CLASSIFIER_ALL
public static final String CLASSIFIER_ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public javax.ws.rs.core.MultivaluedMap<String,String> create(String pRepositoryId, String pName)
-
create
public javax.ws.rs.core.MultivaluedMap<String,String> create(String pRepositoryId, String pGroupId, String pArtifactId, String pPackaging, ValidAndInvalidClassifier pClassifier)
-
create
public javax.ws.rs.core.MultivaluedMap<String,String> create(String pRepositoryId, String pGroupId, String pArtifactId, String pPackaging, ValidAndInvalidClassifier pClassifier, String pToken)
Creates the parameter list for the RESTful service.- Parameters:
pRepositoryId
- the repositoryId.pGroupId
- the GroupIdpArtifactId
- the ArtifactIdpPackaging
- the PackagingpClassifier
- the ClassifierpToken
- the Nexus 3 Token.- Returns:
- the parameters to be used for the request.
-
getRepositoryId
public abstract String getRepositoryId()
-
getGroupId
public abstract String getGroupId()
-
getArtifactId
public abstract String getArtifactId()
-
getPackaging
public abstract String getPackaging()
-
getClassifier
public abstract String getClassifier()
-
getContinuationToken
public abstract String getContinuationToken()
-
getSortOrder
public abstract String getSortOrder()
-
-