camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apache999 <leofer...@gmail.com>
Subject Re: HTTP basic authorization with HTTP4?
Date Thu, 14 Aug 2014 15:04:30 GMT
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.

Mime
View raw message