• Online, Self-Paced
Course Description

JAX-RS is the Java API for RESTful web services. This course will introduce web services and their role in web applications. It will then cover how to configure, use, and manage JAX-RS resources in Java web applications. It will also cover how to create Java RESTful clients and you'll learn about alternative RESTful clients. The course will provide demonstrations and practice in configuring a Media Manager application to use RESTful service and client to manage and access media files.

Learning Objectives

JAX-RS Web Services

  • start the course
  • describe the role of web services in web applications
  • describe resources and their design in web applications
  • describe the HTTP methods and status codes that can be used with REST applications
  • describe REST resource collections
  • describe a root resource and how to call it in a Java web application
  • describe how REST resource methods can be annotated
  • describe entity types supported by JAX-RS, Content-Type headers, and how RESTful content is consumed
  • describe the parameter types and subresource methods supported by REST resources in Java web applications
  • describe application subclasses for RESTful applications and describe the code for a sample application subclass
  • describe how to control the response value returned from an HTTP method in a RESTful application
  • describe how web service errors can be reported with JAX-RS, how WebException runtime error can be thrown, and how JAX-RS supports the use of Bean Validation

Creating Java RESTful Web Services

  • create a RESTful service to retrieve a collection of images and videos
  • create a RESTful service to retrieve and delete an individual media file
  • create a RESTful service to add an individual media file to a collection

Java RESTful Clients

  • describe how to create a Java web client using method chaining, a web target, and invocation builder
  • describe how to use the Invocation.Builder synchronous HTTP methods to obtain the response entity and send the request entity
  • describe the subclasses of WebException that can be thrown when a response is not obtained by a RESTful client
  • describe alternative RESTful clients
  • create a Java RESTful client to list a collection of files
  • create a Java RESTful client to retrieve and delete individual files
  • create a Java RESTful client to add a file to a collection
  • configure a RESTful client to invoke a servlet to upload files

Practice: RESTful Services and Clients

  • practice configuring RESTful services and clients fo a Java web application

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.

Feedback

If you would like to provide feedback for this course, please e-mail the NICCS SO at NICCS@hq.dhs.gov.