November 2017
Intermediate to advanced
420 pages
10h 29m
English
JAX-RS uses the @Path annotation for dispatching requests to corresponding resource or sub-resource methods using the following steps:
Now let us illustrate, for the following services, Service1 and Service2, how request dispatching happens when a client requests the target resources:
@Path("/s1")public class Service1 { /** * Creates a new instance of Service1 */ public Service1() { } @GET @Path("{name : .+}") @Produces(MediaType.APPLICATION_JSON) ...