camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Jetty consumer restricting methods
Date Wed, 08 Aug 2012 02:03:22 GMT
Hi,

It's typical Content Base Route, you can define the route like this

from("jetty://address1")
    .choice()
         .when(header("CamelHttpMethod").isEqualTo("GET")).to("direct:doSomeThing")
         .otherwise().to("direct:bye").stop()
    .end()
    // keep on processing

-- 
Willem Jiang



On Wednesday, August 8, 2012 at 1:20 AM, Mark Webb wrote:

> I am using Jetty for a Camel consumer on a couple routes. I would
> like to limit only GET methods for one route and PUT for another
> route. Is this possible or do I need to set up some kind of
> filter/processor to do this? I don't see anything in the
> documentation to support this functionality.
> 
> Thanks,
> Mark
> 
> 



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message