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, getProperty, parseExtentArgumentcreateDataset, createTable, notAValue, parseArguments, parseArguments, parseArguments, unknownInstanceprivate 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 RequestArgumentsbody - The request body.src - The parameter's encoded source.request - The request payload.java.io.IOExceptionprotected DatasetWrapper loadDataSet(java.lang.String content) throws java.io.IOException
loadDataSet in class ServiceArgumentsParsercontent - The dataset definition.DatasetWrapper instance to be passed as argument to the remote call.java.io.IOExceptionprotected TableWrapper loadTable(java.lang.String content) throws java.io.IOException
loadTable in class ServiceArgumentsParsercontent - The table definition.TableWrapper instance to be passed as argument to the remote call.java.io.IOExceptionprotected java.lang.Object[] readRow(java.util.List<PropertyDefinition> props, com.fasterxml.jackson.databind.JsonNode root)
props - The table properties.root - The JSON row.