Say I have @Path("/abc") annotated on class ABCResource, does Jersey provide interface to retrospect which Class will be handling the coming uri, like this:
public Class getHandlerClassForURL(URL url), by invoking with 'abc' I would expecting ABCResource.class returned.
Is it possible in Jersey?
The reason why I need such utility is I have to provide a util to test if a specific menu-item(corresponding to @Path) is authorized to be visited before a real invocation occurs. So dynamic way won't help, such as uriInfo.getMatchedResources(), as I'm not intend to do this in a 'filter' or 'interceptor' circumstance.
I suppose inside Jersey, there should be a mapping like the <servlet-mapping> in web.xml, actually I do find one here, sadly the key-value is opposite to my need.