public class SynapseJsonPath extends SynapsePath
bufferSizeSupport, contentAware, domNamespaceMap, expression, JSON_PATH, X_PATH| Constructor and Description |
|---|
SynapseJsonPath(String jsonPathExpression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValueOf(MessageContext synCtx)
This method will return the boolean value of the jsonpath.
|
Object |
evaluate(Object object)
Read the JSON Stream and returns a list of objects using the jsonPath.
|
com.jayway.jsonpath.JsonPath |
getJsonPath() |
String |
getJsonPathExpression() |
String |
getParentPath() |
Object |
replace(Object rootObject,
Object newChild)
Replaces first matching item with a given child object.
|
void |
setJsonPath(com.jayway.jsonpath.JsonPath jsonPath) |
void |
setJsonPathExpression(String jsonPathExpression) |
String |
stringValueOf(InputStream jsonStream) |
String |
stringValueOf(MessageContext synCtx) |
String |
stringValueOf(String jsonString) |
addNamespacesForFallbackProcessing, getExpression, getMessageInputStreamPT, getPathType, handleException, isContentAware, isMessageBiggerThanBuffer, setExpression, setPathType, toStringaddNamespace, addNamespaces, getNamespacesbooleanValueOf, createFunctionContext, createNamespaceContext, createVariableContext, debug, getContext, getContextSupport, getFunctionContext, getNamespaceContext, getNavigator, getRootExpr, getVariableContext, numberValueOf, selectNodes, selectNodesForContext, selectSingleNode, selectSingleNodeForContext, setFunctionContext, setNamespaceContext, setVariableContext, stringValueOf, valueOfpublic SynapseJsonPath(String jsonPathExpression) throws org.jaxen.JaxenException
org.jaxen.JaxenExceptionpublic com.jayway.jsonpath.JsonPath getJsonPath()
public String getParentPath()
public void setJsonPath(com.jayway.jsonpath.JsonPath jsonPath)
public String stringValueOf(MessageContext synCtx)
stringValueOf in class SynapsePathpublic String stringValueOf(InputStream jsonStream)
public String getJsonPathExpression()
public void setJsonPathExpression(String jsonPathExpression)
public Object evaluate(Object object)
evaluate in interface org.jaxen.XPathevaluate in class org.jaxen.BaseXPathpublic Object replace(Object rootObject, Object newChild)
rootObject - Root JSON Object or ArraynewChild - New jsonObject to replacepublic boolean booleanValueOf(MessageContext synCtx)
synCtx - message contextCopyright © 2005–2024 Apache Software Foundation. All rights reserved.