class JsonRequestsParser extends RequestArguments
Modifier and Type | Field and Description |
---|---|
private java.lang.ThreadLocal<com.fasterxml.jackson.databind.ObjectMapper> |
mapper
Used to parse the HTTP body as a JSON object.
|
Constructor and Description |
---|
JsonRequestsParser() |
Modifier and Type | Method and Description |
---|---|
protected DatasetWrapper |
loadDataSet(java.lang.String content)
Load the specified dataset.
|
protected TableWrapper |
loadTable(java.lang.String content)
Load the specified table.
|
protected java.lang.String |
parseArgumentInt(java.lang.String body,
java.lang.String src,
javax.servlet.http.HttpServletRequest request)
Parse the argument, by interpreting the request.
|
protected java.lang.Object[] |
readRow(java.util.List<PropertyDefinition> props,
com.fasterxml.jackson.databind.JsonNode root)
Read a row from the specified JSON node.
|
assignArgument, parseExtentArgument
createDataset, createTable, notAValue, parseArguments, parseArguments, parseArguments, unknownInstance
private final java.lang.ThreadLocal<com.fasterxml.jackson.databind.ObjectMapper> mapper
protected java.lang.String parseArgumentInt(java.lang.String body, java.lang.String src, javax.servlet.http.HttpServletRequest request) throws java.io.IOException
parseArgumentInt
in class RequestArguments
body
- The request body.src
- The parameter's encoded source.request
- The request payload.java.io.IOException
protected DatasetWrapper loadDataSet(java.lang.String content) throws java.io.IOException
loadDataSet
in class ServiceArgumentsParser
content
- The dataset definition.DatasetWrapper
instance to be passed as argument to the remote call.java.io.IOException
protected TableWrapper loadTable(java.lang.String content) throws java.io.IOException
loadTable
in class ServiceArgumentsParser
content
- The table definition.TableWrapper
instance to be passed as argument to the remote call.java.io.IOException
protected java.lang.Object[] readRow(java.util.List<PropertyDefinition> props, com.fasterxml.jackson.databind.JsonNode root)
props
- The table properties.root
- The JSON row.