Class NexusSearchNGResponseParser
- java.lang.Object
-
- de.mnl.osgi.bnd.repository.maven.nexussearch.NexusSearchNGResponseParser
-
public class NexusSearchNGResponseParser extends Object
Parses the XML document returned by a Nexus server in response to alucene/search
request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NexusSearchNGResponseParser.ParseResult
-
Constructor Summary
Constructors Constructor Description NexusSearchNGResponseParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<aQute.maven.api.Revision>
artifacts()
Returns the reported artifacts.NexusSearchNGResponseParser.ParseResult
parse(InputStream in)
Parse the result return from the Nexus server.Set<URL>
releaseRepositories()
Returns the reported release repositories.Set<URL>
snapshotRepositories()
Returns the reported snapshot repositories.
-
-
-
Constructor Detail
-
NexusSearchNGResponseParser
public NexusSearchNGResponseParser()
-
-
Method Detail
-
snapshotRepositories
public Set<URL> snapshotRepositories() throws MalformedURLException
Returns the reported snapshot repositories.- Returns:
- the result
- Throws:
MalformedURLException
- if the URL is malformed
-
releaseRepositories
public Set<URL> releaseRepositories() throws MalformedURLException
Returns the reported release repositories.- Returns:
- the result
- Throws:
MalformedURLException
- if the URL is malformed
-
artifacts
public Set<aQute.maven.api.Revision> artifacts()
Returns the reported artifacts.- Returns:
- the result
-
parse
public NexusSearchNGResponseParser.ParseResult parse(InputStream in) throws Exception
Parse the result return from the Nexus server. The outcome will be reflected in the attributes.- Parameters:
in
- the stream with result data- Returns:
- the parse result
- Throws:
Exception
- if a problem occurs
-
-