Filtering or 'short circuit' a route

2016-07-16 Thread knew...@gmail.com
Hello,

I am looking for some suggestions on how I might 'filter' an http route. The
general idea is to create a process that checks the http request for a valid
oauth access token and if valid, allows the route to continue. If missing or
invalid, 'something' would return an http response of 401 or 403 to the
client without completing the route (short circuit). 

I've glanced through some of the EIP but I haven't seen anything that I
could obviously use for this.

Thanks in advance,

Kevin



--
View this message in context: 
http://camel.465427.n5.nabble.com/Filtering-or-short-circuit-a-route-tp5785185.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Filtering or 'short circuit' a route

2016-07-17 Thread knew...@gmail.com
Thank you for the reply.

The general idea is to not forward the message along to the endpoint server
if the credential check fails. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Filtering-or-short-circuit-a-route-tp5785185p5785197.html
Sent from the Camel - Users mailing list archive at Nabble.com.