@ComponentProfile(summary="Extract a JSON Path from the source and write it into the target", tag="json") public class JsonPathExecution extends Execution
Constructor and Description |
---|
JsonPathExecution() |
JsonPathExecution(DataInputParameter<java.lang.String> source,
DataOutputParameter<java.lang.String> target) |
Modifier and Type | Method and Description |
---|---|
NullConverter |
getNullConverter() |
java.lang.Boolean |
getSuppressPathNotFound() |
NullConverter |
nullConverter() |
void |
setNullConverter(NullConverter nc)
Specify the behaviour when a null is encountered during json path execution.
|
void |
setSuppressPathNotFound(java.lang.Boolean b)
Suppress exceptions caused by
PathNotFoundException . |
boolean |
suppressPathNotFound() |
<T extends JsonPathExecution> |
withNullConverter(NullConverter nc) |
<T extends JsonPathExecution> |
withSuppressPathNotFound(java.lang.Boolean b) |
public JsonPathExecution()
public JsonPathExecution(DataInputParameter<java.lang.String> source, DataOutputParameter<java.lang.String> target)
public java.lang.Boolean getSuppressPathNotFound()
public void setSuppressPathNotFound(java.lang.Boolean b)
PathNotFoundException
.b
- to suppress exceptions arising from a json path not being found; default is null (false).public boolean suppressPathNotFound()
public NullConverter getNullConverter()
public void setNullConverter(NullConverter nc)
nc
- the NullConverter to set, the default is return "null" as the value.public NullConverter nullConverter()
public <T extends JsonPathExecution> T withNullConverter(NullConverter nc)
public <T extends JsonPathExecution> T withSuppressPathNotFound(java.lang.Boolean b)