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 - Java EE Tutorial
From the course: Java EE 8 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Rest overview1m 58s
-
(Locked)
JAX-RS overview5m
-
(Locked)
JAX-RS project setup3m 11s
-
(Locked)
Creating a resource5m 16s
-
(Locked)
JAX-RS client posts7m 22s
-
(Locked)
JAX-RS client gets4m 23s
-
(Locked)
URI template parameters2m 49s
-
(Locked)
Asynchronous features7m 51s
-
(Locked)
Reactive features5m 31s
-
(Locked)
Server-Sent Events6m 16s
-
(Locked)
-
-
-
-
-
-