Re: Rest DSL with jetty and SSL

2015-05-30 Thread Willem Jiang
Configuration() > .component("jetty") > .host("localhost") > .port("8082") > //.scheme("https") > .contextPath("rest") > .bindingMode(RestBindingMode.auto) > .dataFormatProperty("prettyPrint", "true"); > > rest("/say") > .get("/hello").to("direct:hello") > .get("/bye").consumes("application/json").to("direct:bye") > .post("/bye").to("mock:update"); > > from("direct:hello") > .transform().constant("Hello World"); > from("direct:bye") > .transform().constant("Bye World"); > } > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Rest-DSL-with-jetty-and-SSL-tp5767572.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: Rest DSL with jetty and SSL

2015-05-30 Thread Roman Vottner
abled. If you have enabled the basic auth handler you should be asked for user credentials (user=admin; pw=secret) Hope this helps and Claus or Willem can have a look at those issues -- View this message in context: http://camel.465427.n5.nabble.com/Rest-DSL-with-jetty-and-SSL-tp5767572p5767688.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Rest DSL with jetty and SSL

2015-05-29 Thread Camel Guy
) > .contextPath("rest") > .bindingMode(RestBindingMode.auto) > .dataFormatProperty("prettyPrint", "true"); > > rest("/say") > .get("/hello").to("direct:hello") > .get("/bye").consumes("application/json").to("direct:bye") > .post("/bye").to("mock:update"); > > from("direct:hello") > .transform().constant("Hello World"); > from("direct:bye") > .transform().constant("Bye World"); > } > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Rest-DSL-with-jetty-and-SSL-tp5767572.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Rest DSL with jetty and SSL

2015-05-27 Thread btt423
/say") .get("/hello").to("direct:hello") .get("/bye").consumes("application/json").to("direct:bye") .post("/bye").to("mock:update"); from("direct:hello") .transfor