I would like to configure the RestTemplate that will be used by the HTTP Outbound Gateway based on the Message (e.g. get authentication information from the payload). Is there a way to achieve this, preferably with Java DSL?
The API seems to allow a configurable URI based on the Message, but what about the RestTemplate?