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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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

Reply via email to