Package com.adaptris.core.json
Class JsonPathDataInputParameter
- java.lang.Object
-
- com.adaptris.core.json.JsonPathDataInputParameter
-
- All Implemented Interfaces:
DataInputParameter<java.lang.String>
@ComponentProfile(summary="Extract data via a JSON Path", tag="json") public class JsonPathDataInputParameter extends java.lang.Object implements DataInputParameter<java.lang.String>
ThisDataInputParameter
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 Summary
Constructors Constructor Description JsonPathDataInputParameter()
JsonPathDataInputParameter(java.lang.String v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
extract(InterlokMessage m)
java.lang.String
getPath()
void
setPath(java.lang.String v)
The path to resolve.
-
-
-
Method Detail
-
extract
public java.lang.String extract(InterlokMessage m) throws InterlokException
- Specified by:
extract
in interfaceDataInputParameter<java.lang.String>
- Throws:
InterlokException
-
getPath
public java.lang.String getPath()
-
setPath
public void setPath(java.lang.String v)
The path to resolve.- Parameters:
v
- the path.
-
-