Class JsltObjectVariables

java.lang.Object
com.adaptris.core.json.jslt.JsltObjectVariables
All Implemented Interfaces:
JsltVariableBuilder

public class JsltObjectVariables extends 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 of JsltMetadataService with a JsltQueryToObjectMetadata. 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 Details

    • JsltObjectVariables

      public JsltObjectVariables()
  • Method Details

    • build

      public Map<String,com.fasterxml.jackson.databind.JsonNode> build(AdaptrisMessage msg)
      Specified by:
      build in interface JsltVariableBuilder
    • withObjectMetadataKeyRegexp

      public JsltObjectVariables withObjectMetadataKeyRegexp(String regexp)
    • getObjectMetadataKeyRegexp

      public String getObjectMetadataKeyRegexp()
      The filter you wish to apply to for object metadata

      The 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(String objectMetadataKeyRegexp)
      The filter you wish to apply to for object metadata

      The regular expression should only match object metadata that is of the type JsonNode. If not specified then no object metadata is included.