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 voidinit(org.apache.camel.CamelContext camelContext)Initializes the adapterMapreadValue(Object body, org.apache.camel.Exchange exchange)Attempt to read/convert the message body into aMaptypeStringwriteAsString(Object value, org.apache.camel.Exchange exchange)Attempts to write the value as a JSOnStringvalue.
-
-
-
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 aMaptype- Parameters:
body- the message bodyexchange- the Camel exchange- Returns:
- converted as
Mapor null if not possible
-
-