You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Alex Luo <ka...@gmail.com> on 2020/12/07 21:46:05 UTC
Filters option not available in Netty-http Component
We are trying to use netty-http component for exposing REST Http endpoint.
But we find out netty-http doesn't have filters (Consumer) opton. It is
available in Jetty component.
What is the alternative of filters option in netty-http? Thanks.
--
Sincerely,
Alex
Re: Filters option not available in Netty-http Component
Posted by Alex Luo <ka...@gmail.com>.
Yes sounds like it’s Jetty specific option. Thanks
Alex Luo
> On Dec 8, 2020, at 10:03 AM, Claus Ibsen <cl...@gmail.com> wrote:
>
> Hi
>
> Okay so the jetty filter would then silently just drop incoming
> requests if your custom filter would return false?
> Its a custom jetty feature and not available in all other http components.
>
>
>
>> On Tue, Dec 8, 2020 at 3:42 PM Alex Luo <ka...@gmail.com> wrote:
>>
>> Hi Clause,
>>
>> We are using filters to validate the incoming http request into netty-http
>> Consumer. Only valid http requests can trigger the camel http flow.
>>
>> Inside the filters (i.e. doFilter() ) logic, we check the request's header
>> Authorization information to authorize the incoming request.
>>
>> We used to use Jetty Component to do this job. and we would like to switch
>> to use Netty-http component for high performance. However netty-http
>> doesn't have the Filters option.
>>
>> Thanks.
>>
>> Alex
>>
>>> On Tue, Dec 8, 2020 at 1:14 AM Claus Ibsen <cl...@gmail.com> wrote:
>>>
>>> Hi
>>>
>>> What do you want to do, eg what do you need a filter for?
>>>
>>> On Mon, Dec 7, 2020 at 10:46 PM Alex Luo <ka...@gmail.com> wrote:
>>>>
>>>> We are trying to use netty-http component for exposing REST Http
>>> endpoint.
>>>> But we find out netty-http doesn't have filters (Consumer) opton. It is
>>>> available in Jetty component.
>>>>
>>>> What is the alternative of filters option in netty-http? Thanks.
>>>>
>>>> --
>>>> Sincerely,
>>>>
>>>> Alex
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> -----------------
>>> http://davsclaus.com @davsclaus
>>> Camel in Action 2: https://www.manning.com/ibsen2
>>>
>>
>>
>> --
>> Sincerely,
>>
>> Alex
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
Re: Filters option not available in Netty-http Component
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Okay so the jetty filter would then silently just drop incoming
requests if your custom filter would return false?
Its a custom jetty feature and not available in all other http components.
On Tue, Dec 8, 2020 at 3:42 PM Alex Luo <ka...@gmail.com> wrote:
>
> Hi Clause,
>
> We are using filters to validate the incoming http request into netty-http
> Consumer. Only valid http requests can trigger the camel http flow.
>
> Inside the filters (i.e. doFilter() ) logic, we check the request's header
> Authorization information to authorize the incoming request.
>
> We used to use Jetty Component to do this job. and we would like to switch
> to use Netty-http component for high performance. However netty-http
> doesn't have the Filters option.
>
> Thanks.
>
> Alex
>
> On Tue, Dec 8, 2020 at 1:14 AM Claus Ibsen <cl...@gmail.com> wrote:
>
> > Hi
> >
> > What do you want to do, eg what do you need a filter for?
> >
> > On Mon, Dec 7, 2020 at 10:46 PM Alex Luo <ka...@gmail.com> wrote:
> > >
> > > We are trying to use netty-http component for exposing REST Http
> > endpoint.
> > > But we find out netty-http doesn't have filters (Consumer) opton. It is
> > > available in Jetty component.
> > >
> > > What is the alternative of filters option in netty-http? Thanks.
> > >
> > > --
> > > Sincerely,
> > >
> > > Alex
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
> >
>
>
> --
> Sincerely,
>
> Alex
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Re: Filters option not available in Netty-http Component
Posted by Alex Luo <ka...@gmail.com>.
Hi Clause,
We are using filters to validate the incoming http request into netty-http
Consumer. Only valid http requests can trigger the camel http flow.
Inside the filters (i.e. doFilter() ) logic, we check the request's header
Authorization information to authorize the incoming request.
We used to use Jetty Component to do this job. and we would like to switch
to use Netty-http component for high performance. However netty-http
doesn't have the Filters option.
Thanks.
Alex
On Tue, Dec 8, 2020 at 1:14 AM Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> What do you want to do, eg what do you need a filter for?
>
> On Mon, Dec 7, 2020 at 10:46 PM Alex Luo <ka...@gmail.com> wrote:
> >
> > We are trying to use netty-http component for exposing REST Http
> endpoint.
> > But we find out netty-http doesn't have filters (Consumer) opton. It is
> > available in Jetty component.
> >
> > What is the alternative of filters option in netty-http? Thanks.
> >
> > --
> > Sincerely,
> >
> > Alex
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>
--
Sincerely,
Alex
Re: Filters option not available in Netty-http Component
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
What do you want to do, eg what do you need a filter for?
On Mon, Dec 7, 2020 at 10:46 PM Alex Luo <ka...@gmail.com> wrote:
>
> We are trying to use netty-http component for exposing REST Http endpoint.
> But we find out netty-http doesn't have filters (Consumer) opton. It is
> available in Jetty component.
>
> What is the alternative of filters option in netty-http? Thanks.
>
> --
> Sincerely,
>
> Alex
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2