@ThreadSafe public class NexusV2Search extends java.lang.Object implements NexusSearch
| Constructor and Description |
|---|
NexusV2Search(Settings settings,
boolean useProxy)
Creates a NexusSearch for the given repository URL.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
preflightRequest()
Do a preflight request to see if the repository is actually working.
|
MavenArtifact |
searchSha1(java.lang.String sha1)
Searches the configured Nexus repository for the given sha1 hash.
|
public NexusV2Search(Settings settings, boolean useProxy) throws java.net.MalformedURLException
settings - the configured settingsuseProxy - flag indicating if the proxy settings should be usedjava.net.MalformedURLException - thrown if the configured URL is
invalidpublic MavenArtifact searchSha1(java.lang.String sha1) throws java.io.IOException
NexusSearchMavenArtifact is populated with the
coordinate information.searchSha1 in interface NexusSearchsha1 - The SHA-1 hash string for which to searchjava.io.IOException - if it's unable to connect to the specified repository
or if the specified artifact is not found.public boolean preflightRequest()
NexusSearchpreflightRequest in interface NexusSearchCopyright© 2012-21 Jeremy Long. All Rights Reserved.