They are HTTP headers. I have tried to implement it as follows but it is
still not working

from("direct:start")
                                                
.setHeader(Exchange.HTTP_METHOD, constant("GET"))
                                                .process(new Processor() {
                                                        public void 
process(Exchange exchange)
                                                                        throws 
Exception {
                                                                
System.out.println("Hi From Processor");
                                                                
HttpBasicAuthRestClient http = new HttpBasicAuthRestClient(
                                                                                
"https://someurl";,
                                                                                
"", "",
                                                                                
"");
                                                                exchange.getIn()
                                                                                
.setHeaders(http.getHeaderMap());

                                                        }
                                                })
                                                .to("https4://someurl")
                                                .process(new Processor() {
                                                        public void 
process(Exchange exchange)
                                                                        throws 
Exception {
                                                                
System.out.println(exchange.getIn().getBody()
                                                                                
.toString());

                                                        }
                                                });
 I am not getting anything on the console.



--
View this message in context: 
http://camel.465427.n5.nabble.com/HTTPS-Endpoint-to-File-tp5773160p5773175.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to