Package com.adaptris.core.json.jslt
Class JsltFixedVariables
- java.lang.Object
-
- com.adaptris.core.json.jslt.JsltFixedVariables
-
- All Implemented Interfaces:
JsltVariableBuilder
public class JsltFixedVariables extends java.lang.Object implements JsltVariableBuilder
Builds a map of variables for JSLT from a fixed set of configuration.Takes the configured
KeyValuePairSetand turns them into a map ofTextNodeobjects.In the adapter configuration file this class is aliased as jslt-fixed-variables which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description JsltFixedVariables()
-
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)KeyValuePairSetgetVariables()The fixed variables you wish to pass as part of the JLST Transform.voidsetVariables(KeyValuePairSet variables)The fixed variables you wish to pass as part of the JLST Transform.JsltFixedVariableswithVariables(KeyValuePair... kvps)JsltFixedVariableswithVariables(KeyValuePairSet kvps)
-
-
-
Method Detail
-
build
public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> build(AdaptrisMessage msg)
- Specified by:
buildin interfaceJsltVariableBuilder
-
withVariables
public JsltFixedVariables withVariables(KeyValuePair... kvps)
-
withVariables
public JsltFixedVariables withVariables(KeyValuePairSet kvps)
-
getVariables
public KeyValuePairSet getVariables()
The fixed variables you wish to pass as part of the JLST Transform.
-
setVariables
public void setVariables(KeyValuePairSet variables)
The fixed variables you wish to pass as part of the JLST Transform.
-
-