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 HttpResponse object| Constructor and Description |
|---|
EnhancementsParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
static EnhancementsParser |
createDefaultParser(org.apache.http.HttpResponse response)
Create an
RDFStructureParser as default EnhancementsParser. |
static EnhancementsParser |
createParser(org.apache.http.HttpResponse response)
|
public static final EnhancementsParser createDefaultParser(org.apache.http.HttpResponse response) throws EnhancementParserException, IOException
RDFStructureParser as default EnhancementsParser. The method will try to parse an Enhancement Structure in
RDF format, ignoring the HttpResponse MediaType. Users need to ensure that the HttpResponse contains the Enhancement
Structure in that formatresponse - EnhancementParserExceptionIOExceptionpublic static final EnhancementsParser createParser(org.apache.http.HttpResponse response) throws EnhancementParserException, IOException
EnhancementsParser depending on the HttpResponse MediaType. Supported
MediaTypes are enumerated in the class AnalysisRequest.OutputFormatresponse - EnhancementParserExceptionIOExceptionCopyright © 2018 Redlink GmbH. All rights reserved.