You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cgsk <ka...@gmail.com> on 2014/01/07 19:44:16 UTC

Camel Jetty Rest endpoints

Hi There,

Is it possible to expose a Jetty endpoint like a rest endpoint below with
dynamic http path.

http://localhost:8001/rest/oderservice/${orderId}/{en}

Regards,
cgsk



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Jetty-Rest-endpoints-tp5745690.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Jetty Rest endpoints

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can use matchOnUriPrefix=true. See more details at
http://camel.apache.org/jetty
http://camel.apache.org/how-do-i-let-jetty-match-wildcards.html

Though jetty wont auto map the context path to headers or something.
But you have access to the context-path in the camel message, so you
can figure out the order id etc.

On Tue, Jan 7, 2014 at 7:44 PM, cgsk <ka...@gmail.com> wrote:
> Hi There,
>
> Is it possible to expose a Jetty endpoint like a rest endpoint below with
> dynamic http path.
>
> http://localhost:8001/rest/oderservice/${orderId}/{en}
>
> Regards,
> cgsk
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Jetty-Rest-endpoints-tp5745690.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io