public class MyRouteBuilder extends RouteBuilder {
public void configure() {
*//Missed this in previous post *
*configureSslForHttp4();*
from("jetty:http://server:4443/fdggwsapi/services").process(new
MyProcessor()).to("https4://server:443/fdggwsapi/services?bridgeEndpoint=true&authMethod=Basic&authUsername=WS1909634900._.1&authPassword=password&authenticationPreemptive=true");
}
private void configureSslForHttp4()
{
HttpComponent httpComponent = getContext().getComponent("http4",
HttpComponent.class);
httpComponent.setHttpClientConfigurer(new MyHttpClientConfigurer());
}
}
--
View this message in context:
http://camel.465427.n5.nabble.com/HTTP-basic-authorization-with-HTTP4-tp5755181p5755213.html
Sent from the Camel - Users mailing list archive at Nabble.com.