0

I'm building the pipeline with spring cloud stream starters and httpclientprocessor is one of the steps. My requirement is to invoke the remote http server and enrich the original message with the response. The problem is that httpclientprocessor doesn't allow to propagate attributes from original message, it only allows to evaluate the message expression based on reply body.

I was suggested to store some attributes in message headers before httpclient, but getting MessageHeaders is immutable exception.

So, basically, I can't proceed the pipeline after httpclient as I'm lacking the needed attributes from original message.

See the detailed discussion in github

Please advise.
Thanks

Alexander.Furer
  • 1,817
  • 1
  • 16
  • 24

1 Answers1

0

As suggested by Artem in github, you can use header enricher there. Check this one as an example

Community
  • 1
  • 1
Ilayaperumal Gopinathan
  • 4,099
  • 1
  • 13
  • 12