@DefaultKey(value="json") @ValidScope(value="request") public class JsonTool extends JsonTool
JsonTool. It adds an automatic parsing of the HTTP query
body content, if it is found to be of JSON type.ImportSupport.SafeClosingHttpURLConnectionReaderimportSupportRESOURCE_KEY, URL_KEY, VALID_SCHEME_CHARSLOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY| Constructor and Description |
|---|
JsonTool() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(ValueParser parser)
Configuration.
|
protected void |
initializeImportSupport(ValueParser config)
Importsupport initialization
|
protected static boolean |
isJsonContentType(String contentType)
Check if a given content type is of JSON type
|
protected static boolean |
isJsonMimeType(String mimeType)
Check if a given mime type is of JSON type
|
fetch, get, get, initJSON, initJSON, iterator, keys, keySet, parse, read, root, size, toStringacquireLocalURLReader, acquireLocalURLString, acquireReader, acquireRemoteURLReader, acquireRemoteURLString, acquireString, getClasspathResource, getContentTypeAttribute, getFileResource, getProtocol, getResourceReader, getResourceString, isRemoteURL, setSafeModeconfigure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected void initializeImportSupport(ValueParser config)
initializeImportSupport in class JsonToolconfig - configuration valuesprotected static boolean isJsonMimeType(String mimeType)
mimeType - mime typeprotected static boolean isJsonContentType(String contentType)
contentType - content typeprotected void configure(ValueParser parser)
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.