Package com.adaptris.core.json.jslt
Class JsltMetadataVariables
- java.lang.Object
-
- com.adaptris.core.json.jslt.JsltMetadataVariables
-
- All Implemented Interfaces:
JsltVariableBuilder
public class JsltMetadataVariables extends java.lang.Object implements JsltVariableBuilder
Builds a map of variables for JSLT from normal message metadata.Note that since metadata is considered internally as Strings, then all the resulting
JsonNodewill be aTextNodeusingTextNode.valueOf(String).In the adapter configuration file this class is aliased as jslt-metadata-variable which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description JsltMetadataVariables()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>build(AdaptrisMessage msg)MetadataFiltergetFilter()The filter you wish to apply to metadata values.voidsetFilter(MetadataFilter filter)The filter you wish to apply to metadata values.JsltMetadataVariableswithFilter(MetadataFilter f)
-
-
-
Method Detail
-
build
public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> build(AdaptrisMessage msg)
- Specified by:
buildin interfaceJsltVariableBuilder
-
withFilter
public JsltMetadataVariables withFilter(MetadataFilter f)
-
getFilter
public MetadataFilter getFilter()
The filter you wish to apply to metadata values.The default if not configured is
RemoveAllMetadataFilter.
-
setFilter
public void setFilter(MetadataFilter filter)
The filter you wish to apply to metadata values.The default if not configured is
RemoveAllMetadataFilter.
-
-