@ThreadSafe public class NexusSearch extends Object
| Constructor and Description |
|---|
NexusSearch(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(String sha1)
Searches the configured Nexus repository for the given sha1 hash.
|
public NexusSearch(Settings settings, boolean useProxy) throws MalformedURLException
settings - the configured settingsuseProxy - flag indicating if the proxy settings should be usedMalformedURLException - thrown if the configured URL is
invalidpublic MavenArtifact searchSha1(String sha1) throws IOException
MavenArtifact is populated with the
coordinate information.sha1 - The SHA-1 hash string for which to searchIOException - if it's unable to connect to the specified repository
or if the specified artifact is not found.public boolean preflightRequest()
Copyright © 2012–2020 OWASP. All rights reserved.