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 |
---|---|
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, toString
addNamespace, addNamespaces, getNamespaces
booleanValueOf, createFunctionContext, createNamespaceContext, createVariableContext, debug, getContext, getContextSupport, getFunctionContext, getNamespaceContext, getNavigator, getRootExpr, getVariableContext, numberValueOf, selectNodes, selectNodesForContext, selectSingleNode, selectSingleNodeForContext, setFunctionContext, setNamespaceContext, setVariableContext, stringValueOf, valueOf
public SynapseJsonPath(String jsonPathExpression) throws org.jaxen.JaxenException
org.jaxen.JaxenException
public com.jayway.jsonpath.JsonPath getJsonPath()
public String getParentPath()
public void setJsonPath(com.jayway.jsonpath.JsonPath jsonPath)
public String stringValueOf(MessageContext synCtx)
stringValueOf
in class SynapsePath
public String stringValueOf(InputStream jsonStream)
public String getJsonPathExpression()
public void setJsonPathExpression(String jsonPathExpression)
public Object evaluate(Object object)
evaluate
in interface org.jaxen.XPath
evaluate
in class org.jaxen.BaseXPath
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.