Package org.apache.camel.jsonpath
Interface JsonPathAdapter
-
- All Known Implementing Classes:
JacksonJsonAdapter
public interface JsonPathAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init(org.apache.camel.CamelContext camelContext)
Initializes the adapterMap
readValue(Object body, org.apache.camel.Exchange exchange)
Attempt to read/convert the message body into aMap
typeString
writeAsString(Object value, org.apache.camel.Exchange exchange)
Attempts to write the value as a JSOnString
value.
-
-
-
Method Detail
-
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 aMap
type- Parameters:
body
- the message bodyexchange
- the Camel exchange- Returns:
- converted as
Map
or null if not possible
-
-