public class JsonPipe extends AbstractInputStreamPipe
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ARRAY_START |
protected static Pattern |
JSONPATH_FIRSTTOKEN |
protected static String |
JSONPATH_ROOT |
protected static String |
OBJ_START |
protected static String |
PN_VALUEPATH
property specifying the json path where to fetched the used value
|
static String |
RESOURCE_TYPE |
binding, BINDING_IS, REMOTE_START, VALID_PATHbindings, distributionAgent, DRYRUN_EXPR, DRYRUN_KEY, dryRunObject, EMPTY_ITERATOR, IGNORED_PROPERTIES, parent, plumber, PN_STATUS, PN_STATUS_MODIFIED, properties, READ_ONLY, referrer, resolver, resource, RT_PREFIX, STATUS_FINISHED, STATUS_STARTED| Constructor and Description |
|---|
JsonPipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<org.apache.sling.api.resource.Resource> |
getOutput(InputStream is)
in case there is no successful retrieval of some JSON data, we cut the pipe here
|
protected javax.json.JsonStructure |
getValue(javax.json.JsonStructure json,
String valuePath)
Returns fetched json value from value path
|
getOutput, getOutputBindinggetBindings, getConfiguration, getConfiguredInput, getDistributionAgent, getExpr, getInput, getName, getParent, getPath, getPreviousPipe, getResource, isDryRun, modifiesContent, setBindings, setParent, setReferrer, toStringpublic static final String RESOURCE_TYPE
protected static final String PN_VALUEPATH
protected static final String JSONPATH_ROOT
protected static final String ARRAY_START
protected static final String OBJ_START
protected static final Pattern JSONPATH_FIRSTTOKEN
public Iterator<org.apache.sling.api.resource.Resource> getOutput(InputStream is)
getOutput in class AbstractInputStreamPipeprotected javax.json.JsonStructure getValue(javax.json.JsonStructure json,
String valuePath)
json - json structure from which to startvaluePath - path to followCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.