Interface JsltQuery

    • Field Detail

      • INPUT_NODE_METADATA_KEY

        static final java.lang.String INPUT_NODE_METADATA_KEY
      • DEFAULT_OBJECT_MAPPER

        static final com.fasterxml.jackson.databind.ObjectMapper DEFAULT_OBJECT_MAPPER
    • Method Detail

      • evaluate

        void evaluate​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                      AdaptrisMessage msg)
               throws java.lang.Exception
        Evaluate the expression against the message.
        Parameters:
        msg - the AdaptrisMessage
        mapper - the ObjectMapper instance to use.
        Throws:
        java.lang.Exception
      • getJsonNode

        static com.fasterxml.jackson.databind.JsonNode getJsonNode​(AdaptrisMessage msg)
                                                            throws java.lang.Exception
        Turn an AdaptrisMessage object into a JsonNode.

        It first checks to see if INPUT_NODE_METADATA_KEY exists in object metadata and uses that if it does. Otherwise it delegates to jacksonify(AdaptrisMessage).

        Parameters:
        msg - the AdaptrisMessage
        Returns:
        a JsonNode
        Throws:
        java.lang.Exception
      • jacksonify

        static com.fasterxml.jackson.databind.JsonNode jacksonify​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                                                                  AdaptrisMessage msg)
                                                           throws java.lang.Exception
        Turn an AdaptrisMessage object into a JsonNode.
        Parameters:
        mapper - the ObjectMapper.
        msg - the AdaptrisMessage
        Returns:
        a JsonNode
        Throws:
        java.lang.Exception