is it possible to call one jax-rs method from another?
问题 suppose i have some jax-rs resource class: @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public class ResourceA { @GET public Something get(@Context UriInfo uriInfo) { if (...) { //how to get to ResourceB ? } } } and i want to conditionally redirect the call to some other jax-rs resource: public class ResourceB { @GET @Path("{identifier}") public Other get(@PathParam("identifier")String someArg) { } } how do i do this? note that i dont want this to be visible to