public class JsonPathDataInputParameter extends java.lang.Object implements DataInputParameter<java.lang.String>
DataInputParameter
is extracts data via JsonPath.
If the path resolves to a JSON object or JSON Array, then this is simply converted into a String.
In the adapter configuration file this class is aliased as json-path-data-input-parameter which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
JsonPathDataInputParameter() |
JsonPathDataInputParameter(java.lang.String v) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
extract(InterlokMessage m) |
java.lang.String |
getPath() |
void |
setPath(java.lang.String v)
The path to resolve.
|
public JsonPathDataInputParameter()
public JsonPathDataInputParameter(java.lang.String v)
public java.lang.String extract(InterlokMessage m) throws InterlokException
extract
in interface DataInputParameter<java.lang.String>
InterlokException
public java.lang.String getPath()
public void setPath(java.lang.String v)
v
- the path.