Interface NexusSearch
- 
- All Known Implementing Classes:
- NexusV2Search,- NexusV3Search
 
 public interface NexusSearch
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanpreflightRequest()Do a preflight request to see if the repository is actually working.MavenArtifactsearchSha1(java.lang.String sha1)Searches the configured Nexus repository for the given sha1 hash.
 
- 
- 
- 
Method Detail- 
searchSha1MavenArtifact searchSha1(java.lang.String sha1) throws java.io.IOException Searches the configured Nexus repository for the given sha1 hash. If the artifact is found, aMavenArtifactis populated with the coordinate information.- Parameters:
- sha1- The SHA-1 hash string for which to search
- Returns:
- the populated Maven coordinates
- Throws:
- java.io.IOException- if it's unable to connect to the specified repository or if the specified artifact is not found.
 
 - 
preflightRequestboolean preflightRequest() Do a preflight request to see if the repository is actually working.- Returns:
- whether the repository is listening and returns the expected status response
 
 
- 
 
-