T
- the type parameterpublic class JsonQuery<T> extends StringQuery<T>
StringQuery.SimpleStringQuery
done, handler_get, handler_post, id, logger, value
Constructor and Description |
---|
JsonQuery(MarkdownNotebookOutput log)
Instantiates a new Json query.
|
Modifier and Type | Method and Description |
---|---|
protected T |
fromString(String text)
From string t.
|
com.fasterxml.jackson.databind.ObjectMapper |
getMapper()
Gets mapper.
|
protected String |
getString(T value)
Gets string.
|
JsonQuery<T> |
setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Sets mapper.
|
public JsonQuery(MarkdownNotebookOutput log)
log
- the logprotected T fromString(String text) throws IOException
StringQuery
fromString
in class StringQuery<T>
text
- the textIOException
- the io exceptionprotected String getString(T value) throws com.fasterxml.jackson.core.JsonProcessingException
StringQuery
getString
in class StringQuery<T>
value
- the valuecom.fasterxml.jackson.core.JsonProcessingException
- the json processing exceptionpublic com.fasterxml.jackson.databind.ObjectMapper getMapper()
Copyright © 2019 SimiaCryptus Software. All rights reserved.