Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a substitute for ResourceFilter in Jersey 2.0

I'm just wondering what is used in 2.0 instead of ResourceFilter found in Jersey 1.0

I have code to upgrade from 1.0 to 2.0. and can't find any replacement.

like image 896
user3202869 Avatar asked Oct 16 '25 20:10

user3202869


1 Answers

DynamicFeature (directly in JAX-RS 2.0) allows you to assign providers to resource methods in the similar way ResourceFilter does in Jersey 1.

See this article that explains the concepts.

like image 151
Michal Gajdos Avatar answered Oct 19 '25 13:10

Michal Gajdos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!