public class VariantJSONQuery extends VariantAbstractRPCQuery
Modifier and Type | Class and Description |
---|---|
protected class |
VariantJSONQuery.SimpleStringReader |
VariantAbstractRPCQuery.RPCParameter
Modifier and Type | Field and Description |
---|---|
static int |
BACKSLASH |
static int |
BEGIN_ARRAY |
static int |
BEGIN_OBJECT |
static int |
END_ARRAY |
static int |
END_OBJECT |
static String |
JSON_RPC_CONTENT_TYPE |
static int |
NAME_SEPARATOR |
static int |
QUOTATION_MARK |
static int |
VALUE_SEPARATOR |
Constructor and Description |
---|
VariantJSONQuery() |
Modifier and Type | Method and Description |
---|---|
String |
getEscapedValue(String value,
boolean toQuote) |
String |
getUnescapedValue(String value) |
boolean |
isScanNullValues()
Tells whether or not to scan null values.
|
boolean |
isValidContentType(String contentType) |
void |
parseContent(String content) |
void |
setScanNullValues(boolean scan)
Sets whether or not to scan null values.
|
addParameter, addParameter, getParamList, getReadableParameterizedQuery, getReadableParametrizedQuery, getToken, setEscapedParameter, setMessage, setParameter, setRequestContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLeafName, getTreePath, setParameters
public static final String JSON_RPC_CONTENT_TYPE
public static final int NAME_SEPARATOR
public static final int VALUE_SEPARATOR
public static final int BEGIN_ARRAY
public static final int QUOTATION_MARK
public static final int BEGIN_OBJECT
public static final int END_OBJECT
public static final int END_ARRAY
public static final int BACKSLASH
public void setScanNullValues(boolean scan)
The null values are handled as if they were strings, that is, the payload injected is a string.
scan
- true
if null values should be scanned, false
otherwise.isScanNullValues()
public boolean isScanNullValues()
true
if null values should be scanned, false
otherwise.setScanNullValues(boolean)
public boolean isValidContentType(String contentType)
isValidContentType
in class VariantAbstractRPCQuery
public void parseContent(String content)
parseContent
in class VariantAbstractRPCQuery
public String getEscapedValue(String value, boolean toQuote)
getEscapedValue
in class VariantAbstractRPCQuery
public String getUnescapedValue(String value)
getUnescapedValue
in class VariantAbstractRPCQuery