@ThreadSafe
public class CentralSearch
extends java.lang.Object
| Constructor and Description |
|---|
CentralSearch(Settings settings)
Creates a NexusSearch for the given repository URL.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MavenArtifact> |
searchSha1(java.lang.String sha1)
Searches the configured Central URL for the given SHA1 hash.
|
public CentralSearch(Settings settings) throws java.net.MalformedURLException
settings - the configured settingsjava.net.MalformedURLException - thrown if the configured URL is invalidpublic java.util.List<MavenArtifact> searchSha1(java.lang.String sha1) throws java.io.IOException, TooManyRequestsException
MavenArtifact is populated with the
GAV.sha1 - the SHA-1 hash string for which to searchjava.io.FileNotFoundException - if the specified artifact is not foundjava.io.IOException - if it's unable to connect to the specified repositoryTooManyRequestsException - if Central has received too many
requests.Copyright© 2012-21 Jeremy Long. All Rights Reserved.