RESTful Services, Part 3 of 5: Response, Form, and Exceptions
Interactive

RESTful Services, Part 3 of 5: Response, Form, and Exceptions

LearnNow Online
Updated Aug 21, 2018

Course description

JAX-RS normally will take care of building the response based on your return from your REST method call. Sometimes though, you need to take total control over how that response is generated. In this course, we will look at using the ResponseBuilder. You will also learn how to use the ResponseBuilding APIs to generate custom responses when exceptions occur. Lastly, because we need to update and create as well as read, we will take a look at form submission to a rest service and how to submit JSON objects.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

This course assumes that the users have experience coding with Java. You should have already viewed the “RESTful Services: Overview and JAX-RS” and “RESTful Services: Injection and Sub Resources” courses before viewing this course.


Meet the expert

John Kidd

John Kidd is a nationally recognized instructor and consultant who travels the country sharing his expertise in java enterprise, SCRUM, and big data and related technologies. John has over 20 years of teaching and project development experience including roles from developer to vice president of research and development. John is also a popular speaker at several conferences in both the U.S. and Europe.

Video Runtime

63 Minutes

Time to complete

178 Minutes

Course Outline

Response, Form and Exceptions

Response Builder (20:54)

  • Introduction (00:21)
  • Demo: Marshalling (05:08)
  • Demo: Response Builder (04:50)
  • Demo: More Control (05:17)
  • Demo: A Basic Example (05:11)
  • Summary (00:05)

Form Submission (20:40)

  • Introduction (00:16)
  • Demo: POST (05:04)
  • Demo: POST (cont.) (05:03)
  • Demo: JSON (04:42)
  • Demo: Marshalling (05:22)
  • Summary (00:10)

Exceptions (21:56)

  • Introduction (00:14)
  • Demo: Exceptions (04:48)
  • Demo: Exception Mapper (05:44)
  • Demo: Provider (05:13)
  • Demo: IOException (05:48)
  • Summary (00:07)
;