Double-click the fetchURL component to
display its Basic settings view in the
Component tab.
In the URI field, enter "direct:fetchURL" that is defined in the
cContentEnricher component.
Double-click the setURI
component to display its Basic settings
view in the Component tab.
Click [+] to add a row to the Headers table.
In the Name field, enter
org.apache.camel.Exchange.HTTP_URI to define the HTTP URI
of each message.
Select Simple in the Language list.
In the Value field, enter
"http://localhost:8080" of the local Tomcat server.
Double-click the setPATH
component to display its Basic settings
view in the Component tab.
Click [+] to add a row to the Headers table.
In the Name field, enter
org.apache.camel.Exchange.HTTP_PATH to define the HTTP path
of each message.
Select Simple in the Language list.
In the Value field, enter
"${body}" that is split from the original message.
Double-click the http4Endpoint component
to display its Basic settings view in the
Component tab.
In the URI field, enter "http4:localhost:8080" to consuming HTTP
resources on the local Tomcat server.
Click the Advanced settings view. Click
at the bottom of the Dependencies list to add a row and select http4
from the drop-down list. For more information about HTTP4, see the site
http://camel.apache.org/http4.html.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!