Skip to main content Skip to complementary content
Close announcements banner

Configuring the components

Procedure

  1. Double-click cHttp to open its Basic settings view in the Component tab.
  2. In the URI field, enter "http://localhost:8088/user" where the service will be accessible for requests.
  3. Click the Server radio button to use this cHttp component as a server. Keep the default settings of the other options.
  4. Double-click cProcessor to open its Basic settings view in the Component tab.
  5. In the Code area, enter the following code to get the header id of the exchange message:
    System.out.println(exchange.getIn().getHeader("id"));
  6. Press Ctrl+S to save your Route.

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 – let us know how we can improve!