public T jsonPath ( String expression , String value ) { if ( jsonPathMessageConstructionInterceptor == null ) { jsonPathMessageConstructionInterceptor = new JsonPathMessageConstructionInterceptor ( ) ; if ( getAction ( ) . getMessageBuilder ( ) != null ) { ( getAction ( ) . getMessageBuilder ( ) ) . add ( jsonPathMessageConstructionInterceptor ) ; } else { PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder ( ) ; messageBuilder . getMessageInterceptors ( ) . add ( jsonPathMessageConstructionInterceptor ) ; getAction ( ) . setMessageBuilder ( messageBuilder ) ; } } jsonPathMessageConstructionInterceptor . getJsonPathExpressions ( ) . put ( expression , value ) ; return self ; }
Adds JSONPath manipulating expression that evaluates to message payload before sending .