Package com.adaptris.core.json.jslt
Class JsltQueryToObjectMetadata
- java.lang.Object
-
- com.adaptris.core.json.jslt.JsltQueryImpl
-
- com.adaptris.core.json.jslt.JsltQueryToObjectMetadata
-
- All Implemented Interfaces:
JsltQuery
@ComponentProfile(summary="Execute a JSLT query and store the resulting JsonNode as object metadata against the specified key.", tag="jslt,transform,json", since="3.12.0") public class JsltQueryToObjectMetadata extends JsltQueryImplEvaluate a JSLT expression and store the resultingJsonNodeas object metadata against the specified key.In the adapter configuration file this class is aliased as jslt-to-object-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from interface com.adaptris.core.json.jslt.JsltQuery
DEFAULT_OBJECT_MAPPER, INPUT_NODE_METADATA_KEY
-
-
Constructor Summary
Constructors Constructor Description JsltQueryToObjectMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate(com.fasterxml.jackson.databind.ObjectMapper mapper, AdaptrisMessage msg)Evaluate the expression against the message.-
Methods inherited from class com.adaptris.core.json.jslt.JsltQueryImpl
compile, getExpression, getKey, metadataKey, setExpression, setKey, withExpression, withKey
-
-
-
-
Method Detail
-
evaluate
public void evaluate(com.fasterxml.jackson.databind.ObjectMapper mapper, AdaptrisMessage msg) throws java.lang.ExceptionDescription copied from interface:JsltQueryEvaluate the expression against the message.- Parameters:
mapper- the ObjectMapper instance to use.msg- theAdaptrisMessage- Throws:
java.lang.Exception
-
-