How to Make a HTTP Call with Apache Camel

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.http.HttpMethods;
import org.apache.camel.component.http.HttpProducer;

public final class SampleRouteBuilder extends RouteBuilder {

  @Override
  public void configure() throws Exception {
    from(...).setHeader(HttpMethods.HTTP_METHOD, HttpMethods.GET).setHeader(HttpProducer.HTTP_URI, "http://fernandoribeiro.eti.br").to("http://host");
  }

}

http://camel.apache.org/http.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s