public class AnalysisRequest extends Object
RedLink.Analysis services' requests. An instance of this class contains
all the parameters that can be used for profiling a request to the RedLink RedLink.Analysis service. In order to build
such instances, AnalysisRequest.AnalysisRequestBuilder must be used| Modifier and Type | Class and Description |
|---|---|
static class |
AnalysisRequest.AnalysisRequestBuilder
Analysis Request Builder.
|
static class |
AnalysisRequest.InputFormat
Accepted Input Formats
|
static class |
AnalysisRequest.OutputFormat
Accepted Output Formats
|
| Constructor and Description |
|---|
AnalysisRequest() |
| Modifier and Type | Method and Description |
|---|---|
static AnalysisRequest.AnalysisRequestBuilder |
builder()
Create a new Request Builder
|
String |
getAnalysis()
Get current request analysis name
|
double |
getConfidence()
Get current request confidence parameter
|
InputStream |
getContent()
Get current request content as
InputStream |
Collection<String> |
getFieldsToDereference() |
String |
getInputFormat()
Return current request
AnalysisRequest.InputFormat name. |
com.google.common.net.MediaType |
getInputMediaType()
Return current request
AnalysisRequest.InputFormat MediaType. |
String |
getLDPathProgram() |
String |
getOutputFormat()
Return current request
AnalysisRequest.OutputFormat name. |
com.google.common.net.MediaType |
getOutputMediaType()
Return current request
AnalysisRequest.OutputFormat's MediaType . |
boolean |
getSummary()
Get current request summary parameter
|
boolean |
getThumbnail()
Get current request thumbnail parameter
|
public String getInputFormat()
AnalysisRequest.InputFormat name. The input format should be used to specify the format
of the content that is sent to analyzeAnalysisRequest.InputFormat's namepublic com.google.common.net.MediaType getInputMediaType()
AnalysisRequest.InputFormat MediaType. The input format should be used to specify the format
of the content that is sent to analyzeAnalysisRequest.InputFormat's MediaTypepublic String getOutputFormat()
AnalysisRequest.OutputFormat name. The output format should be used to specify the format
of the analysis service responseAnalysisRequest.OutputFormat's namepublic com.google.common.net.MediaType getOutputMediaType()
AnalysisRequest.OutputFormat's MediaType . The output format should be used to specify the format
of the analysis service responseAnalysisRequest.OutputFormat's MediaTypepublic InputStream getContent()
InputStreamInputStream containing the content that is going to be analyzedpublic String getAnalysis()
public boolean getSummary()
public double getConfidence()
public boolean getThumbnail()
public Collection<String> getFieldsToDereference()
public String getLDPathProgram()
public static AnalysisRequest.AnalysisRequestBuilder builder()
AnalysisRequest.AnalysisRequestBuilderCopyright © 2018 Redlink GmbH. All rights reserved.