简体   繁体   中英

Apache Camel http to http routing with transformation of response

this is a kind of a follow-up question to this one here .

So it is possible to do the http-http routing as described in the above url. Is it also possible to adjust the output, so that only a specific part is returned? Eg the <title> of the Google-Page if we stick to the mentioned example..or enhance the output with additional info?

You can add to the route and do your transformation, to eg only contain the title of the google page.

pseudo route:

from jetty
to http
to processor

eg just add for example a processor, and in the processor you can change the message body/headers to contain what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM