From the course: Java EE 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JAX-RS client gets

JAX-RS client gets - Java EE Tutorial

From the course: Java EE 8 Essential Training

Start my 1-month free trial

JAX-RS client gets

- [Instructor] In this lesson, we're going to use our JAX-RS client to make some additional calls against our REST API. Those calls are going to use the HTTP GET method, and we'll see two forms of it. So, to get started, let's talk things over quick. Within our item facelet, you'll notice that we added a quantity field that's displayed regarding the details of the particular catalog item, so this shows how much inventory's available. If we look at the backing bean for that item facelet, you can see that we've added a quantity onto the backing bean of type long. And then in order to retrieve that quantity, we are making a call on our inventory service to the get quantity method and we supply the catalog item ID. If we navigate to our remote inventory service, what we'll see is that the get quantity method has yet to be implemented on this resource. So we're going to work on that. And the way we're going to create…

Contents