November 2017
Intermediate to advanced
420 pages
10h 29m
English
The JAX-RS client API encapsulates the uniform interface constraint, which is a key constraint of the REST architectural style, and offers many convenient APIs for accessing the web resources. We will start by looking at the JAX-RS client API for reading a simple RESTful web service.
You will use the javax.ws.rs.client.ClientBuilder factory class as the entry point to the client API. The javax.ws.rs.client.Client instance returned by ClientBuilder exposes a set of high-level APIs for accessing the web resources.
Let's now apply what we've learned and see how we can access the REST resource identified by the following URI: http://localhost:8080/rest-chapter3-service/webresources/departments.
The preceding ...