Package com.adaptris.core.json.jslt
Class JsltQueryToMetadata
java.lang.Object
com.adaptris.core.json.jslt.JsltQueryImpl
com.adaptris.core.json.jslt.JsltQueryToMetadata
- All Implemented Interfaces:
JsltQuery
@ComponentProfile(summary="Execute a JSLT expression rendering the result as a string and store as metadata.",
tag="jslt,transform,json",
since="3.12.0")
public class JsltQueryToMetadata
extends JsltQueryImpl
Evaluate a JSLT expression rendering the result as a string and store as metadata.
In the adapter configuration file this class is aliased as jslt-to-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 -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(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
-
Constructor Details
-
JsltQueryToMetadata
public JsltQueryToMetadata()
-
-
Method Details
-
evaluate
public void evaluate(com.fasterxml.jackson.databind.ObjectMapper mapper, AdaptrisMessage msg) throws Exception Description copied from interface:JsltQueryEvaluate the expression against the message.- Parameters:
mapper- the ObjectMapper instance to use.msg- theAdaptrisMessage- Throws:
Exception
-