Learn your way! Get started

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

with expert John Kidd

Watch trailer

Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 9/29/2014
Level Intermediate
Runtime 1h 3m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs N/A
Sample code Included
Exams Included

Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More

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.


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.

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
Java Development

Meet the expert

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.

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)