davsclaus commented on pull request #3861:
URL: https://github.com/apache/camel/pull/3861#issuecomment-634642839


   Argh we could maybe make camel-jslt a bit similar to the other templating 
components, such as velocity that creates the headers map ala
   
   Map<String, Object> variableMap = ExchangeHelper.createVariableMap(exchange, 
isAllowContextMapAll());
   
   Then it has prefix headers.xxx. Then you use that in the template and know 
its from a header.
   And yeah would need to still do the json node mapping. But what happens if 
the header type is not json friendly then the mapper would throw an exception. 
So there need to be some way of avoiding this / skipping bad headers by default 
etc.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to