Interface JsonPathAdapter

All Known Implementing Classes:
JacksonJsonAdapter

public interface JsonPathAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    init(org.apache.camel.CamelContext camelContext)
    Initializes the adapter
    readValue(Object body, org.apache.camel.Exchange exchange)
    Attempt to read/convert the message body into a Map type
    writeAsString(Object value, org.apache.camel.Exchange exchange)
    Attempts to write the value as a JSOn String value.
  • Method Details

    • init

      void init(org.apache.camel.CamelContext camelContext)
      Initializes the adapter
      Parameters:
      camelContext - the CamelContext
    • readValue

      Map readValue(Object body, org.apache.camel.Exchange exchange)
      Attempt to read/convert the message body into a Map type
      Parameters:
      body - the message body
      exchange - the Camel exchange
      Returns:
      converted as Map or null if not possible
    • writeAsString

      String writeAsString(Object value, org.apache.camel.Exchange exchange)
      Attempts to write the value as a JSOn String value.
      Parameters:
      value - the value
      exchange - the Camel exchange
      Returns:
      written as String JSON or null if not possible