Class BLNexusParsers
java.lang.Object
com.io7m.brooklime.vanilla.internal.BLNexusParsers
A provider of Nexus parsers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseErrorsIfPresent(String contentType, URI uri, InputStream stream) Parse errors from the given stream, or return an empty list if the content type does not indicate XML.parseRepositories(URI uri, InputStream stream) Parse a list of staging repositories from the given stream.parseRepository(URI uri, InputStream stream) Parse a staging repository from the given stream.parseStagingRepositoryCreate(URI uri, InputStream stream) Parse a staging repository ID from the given stream.
-
Constructor Details
-
BLNexusParsers
public BLNexusParsers()A provider of Nexus parsers.
-
-
Method Details
-
parseStagingRepositoryCreate
Parse a staging repository ID from the given stream.- Parameters:
uri- The source URIstream- The stream URI- Returns:
- A staging repository ID
- Throws:
BLParseException- On errors
-
parseRepositories
public List<BLStagingProfileRepository> parseRepositories(URI uri, InputStream stream) throws BLParseException Parse a list of staging repositories from the given stream.- Parameters:
uri- The source URIstream- The stream URI- Returns:
- A list of staging repositories
- Throws:
BLParseException- On errors
-
parseRepository
public BLStagingProfileRepository parseRepository(URI uri, InputStream stream) throws BLParseException Parse a staging repository from the given stream.- Parameters:
uri- The source URIstream- The stream URI- Returns:
- A staging repository
- Throws:
BLParseException- On errors
-
parseErrorsIfPresent
public List<BLNexusError> parseErrorsIfPresent(String contentType, URI uri, InputStream stream) throws BLParseException Parse errors from the given stream, or return an empty list if the content type does not indicate XML.- Parameters:
contentType- The content typeuri- The source URIstream- The stream URI- Returns:
- Errors
- Throws:
BLParseException- On errors
-