Package com.adaptris.core.json.jslt
Class JsltObjectVariables
- java.lang.Object
-
- com.adaptris.core.json.jslt.JsltObjectVariables
-
- All Implemented Interfaces:
JsltVariableBuilder
public class JsltObjectVariables extends java.lang.Object implements JsltVariableBuilder
Builds a map of variables for JSLT from object metadata.This allows you to use object metadata that is already of the type
JsonNode; possibly via a previous execution ofJsltMetadataServicewith aJsltQueryToObjectMetadata. If the key exists, but is not a JsonNode then an exception is likely.In the adapter configuration file this class is aliased as jslt-object-variable which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description JsltObjectVariables()
-
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)java.lang.StringgetObjectMetadataKeyRegexp()The filter you wish to apply to for object metadatavoidsetObjectMetadataKeyRegexp(java.lang.String objectMetadataKeyRegexp)The filter you wish to apply to for object metadataJsltObjectVariableswithObjectMetadataKeyRegexp(java.lang.String regexp)
-
-
-
Method Detail
-
build
public java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> build(AdaptrisMessage msg)
- Specified by:
buildin interfaceJsltVariableBuilder
-
withObjectMetadataKeyRegexp
public JsltObjectVariables withObjectMetadataKeyRegexp(java.lang.String regexp)
-
getObjectMetadataKeyRegexp
public java.lang.String getObjectMetadataKeyRegexp()
The filter you wish to apply to for object metadataThe regular expression should only match object metadata that is of the type
JsonNode. If not specified then no object metadata is included.
-
setObjectMetadataKeyRegexp
public void setObjectMetadataKeyRegexp(java.lang.String objectMetadataKeyRegexp)
The filter you wish to apply to for object metadataThe regular expression should only match object metadata that is of the type
JsonNode. If not specified then no object metadata is included.
-
-