Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial

## 34 JAX-RS: Advanced Topics and an Example

The Java API for RESTful Web Services (JAX-RS, defined in JSR 370) is designed to make it easy to develop applications that use the REST architecture. This chapter describes advanced features of JAX-RS. If you are new to JAX-RS, see Chapter 32, "Building RESTful Web Services with JAX-RS" before you proceed with this chapter.

JAX-RS is integrated with Contexts and Dependency Injection for Java EE (CDI), Enterprise JavaBeans (EJB) technology, and Java Servlet technology.

The following topics are addressed here:

- Annotations for Field and Bean Properties of Resource Classes

- Validating Resource Data with Bean Validation

- Subresources and Runtime Resource Resolution

- Integrating JAX-RS with EJB Technology and CDI

- Conditional HTTP Requests

- Runtime Content Negotiation

- Using JAX-RS with JAXB

- The customer Example Application

Copyright © 2017, Oracle and/or its affiliates. All rights reserved.