O'Reilly logo

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON by Bhakti Mehta, Masoud Kalali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to JAX-RS

The Java API for Representational State Transfer (JAX-RS) specification defines a set of Java APIs for building web services conforming to the REST style.

This specification defines how to expose POJOs as web resources, using HTTP as the network protocol. Applications using these APIs can be deployed to an application server in a portable manner.

Some of the key features that are introduced in the JAX-RS 2.0 specification are as follows:

  • Client API
  • Server side asynchronous support
  • Bean Validation support

In the subsequent sections we will cover the following topics in relation to JAX-RS 2.0:

  • Converting POJOs to RESTful resources
  • More on JAX-RS annotations
  • Client API for JAX-RS
  • Entities in JAX-RS
  • Custom entity providers in JAX-RS

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required