Skip to content
Advertisement

ContainerRequestFilter being ignored in my Quarkus extension

I want to implement a custom extension to be used in my services. One of the key features is to filter all the incoming requests:

JavaScript

And it’s being declared in that way:

JavaScript

I also tried adding the Jandex plugin in the runtime pom

JavaScript

But it’s not being called.

I saw a similar scenario here but the solution doesn’t work for me.

Any suggestion? thanks in advance.

Advertisement

Answer

Finally, I got a solution.

I am using the quarkus-resteasy-reactive-jackson library that provided @ServerRequestFilter and you can build a CustomContainerRequestFilterBuildItem that is used to register classes that are annotated with @ServerRequestFilter:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement