public final class EnhancementsParserFactory extends Object
EnhancementsParser Factory. The RDF Enhancement Structure parser is the one used by default. JSON and XML parser can be also
created. The proper parser to be returned is automatically inferred from a Response object| Constructor and Description |
|---|
EnhancementsParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
static EnhancementsParser |
createDefaultParser(javax.ws.rs.core.Response response)
Create an
RDFStructureParser as default EnhancementsParser. |
static EnhancementsParser |
createParser(javax.ws.rs.core.Response response)
|
public static final EnhancementsParser createDefaultParser(javax.ws.rs.core.Response response) throws EnhancementParserException
RDFStructureParser as default EnhancementsParser. The method will try to parse an Enhancement Structure in
RDF format, ignoring the Response MediaType. Users need to ensure that the Response contains the Enhancement
Structure in that formatresponse - EnhancementParserExceptionpublic static final EnhancementsParser createParser(javax.ws.rs.core.Response response) throws EnhancementParserException
EnhancementsParser depending on the Response MediaType. Supported
MediaTypes are enumerated in the class AnalysisRequest.OutputFormatresponse - EnhancementParserExceptionCopyright © 2014 Redlink GmbH. All rights reserved.