Kesha Williams explains how to use the JAX-RS Client API.
- [Instructor] Let's see using a client API in action.…I've opened the project in IntelliJ,…and navigated to the RestClient module.…So I've created this new IntelliJ module here,…called RestClient, and this is where I have the code…for the client API.…So, notice in the pom.xml, I've added two dependencies.…The resteasy-jaxrs artifact ID,…and the resteasy client.…So, now let's review the code for the RestClient API.…So that is the RestClient API here,…and this is the Java file.…
So notice here on line 11 I'm creating the client…using ClientBuilder.newClient,…and then notice here on lines 14 through 19,…I'm getting a single application…by passing in a path parameter.…In the previous lesson, we saw that we first…had to create the client, as shown on line 11,…in order to access web resources,…and now, without this client API,…we would have to use the low-level HTTP URL connection…to access the REST endpoint,…so this definitely makes life easier.…
So notice here on line 15, we set the URL,…we pass in the application ID on line 16,…
- Comparing when to use JAX-WS vs. JAX-RS
- Using JAX-RS annotations
- Accessing REST resources with JAX-RS
- Creating JAX-WS endpoints
- Writing RESTful services using JAX-RS
- Reading, writing, updating, and deleting data via endpoints
- Mapping to entities
- Error handling
- Testing web services
- Securing Java EE web services
Skill Level Intermediate
Java EE: RESTful Service with JAX-RS 2.0with Alex Theedom2h 17m Intermediate
WebSocket Programming with Java EEwith Alex Theedom1h 29m Intermediate
1. Understanding Web Services
2. Building RESTful Web Services with JAX-RS
3. Accessing REST Resources with the JAX-RS Client API
4. Building SOAP Web Services with JAX-WS
5. Searching, Error Handling, and Testing in Web Services
6. Documentation, Logging, and Tracing
Next steps1m 51s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.