users@jersey.java.net

[Jersey] Jersey request introspection question

From: Justyna Horwat <justyna_at_apple.com>
Date: Wed, 05 Mar 2014 16:19:51 -0800

Does Jersey have a mechanism to find out whether or not a Jersey enabled service will handle a given request?

For example, I'd like to plug Jersey into a set of factory handlers. As the request comes in, I want a way to take a look at the request and determine which handler is the appropriate one to handle the request before handing the request over to it.

Does Jersey expose any mechanism that would tell me for a given request whether or not any of the service's Jersey annotations?

I don't want to start the whole Jersey lifecycle, ideally I'd like to use bits and pieces of existing Jersey API's to do the introspection and validation. The most promising class, IntrospectionModeller, is no longer public with Jersey 2.x. Is there something similar with Jersey 2.x?

Thanks,

Justyna