public class MavenCentralSearchService extends Object implements IVersionReader
REPO_SEARCH_SERVICE_URL which can be used to query the
maven central repository via a RESTful interface. This class makes use of this API and return a list of artifacts.
getSearchURL() and getRetrieveURL() and #createItemURLs(ResponseDoc)
can be overriden.| Modifier and Type | Field and Description |
|---|---|
static String |
REPO_RETRIEVE_URL |
static String |
REPO_SEARCH_SERVICE_URL |
| Constructor and Description |
|---|
MavenCentralSearchService() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRetrieveURL()
Can over overriden.
|
String |
getSearchURL() |
List<String> |
retrieveVersions(String pGroupId,
String pArtifactId,
String pPackaging,
ValidAndInvalidClassifier pClassifier) |
void |
setCredentials(String pUserName,
String pUserPassword) |
void |
setUserName(String pUserName) |
void |
setUserPassword(String pUserPassword) |
public static final String REPO_RETRIEVE_URL
public static final String REPO_SEARCH_SERVICE_URL
public List<String> retrieveVersions(String pGroupId, String pArtifactId, String pPackaging, ValidAndInvalidClassifier pClassifier) throws VersionReaderException
retrieveVersions in interface IVersionReaderVersionReaderExceptionpublic void setUserName(String pUserName)
setUserName in interface IVersionReaderpublic void setUserPassword(String pUserPassword)
setUserPassword in interface IVersionReaderpublic void setCredentials(String pUserName, String pUserPassword)
setCredentials in interface IVersionReaderpublic String getSearchURL()
public String getRetrieveURL()
Copyright © 2016–2017. All rights reserved.