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

Summary

This chapter started with a brief introduction to REST and the key principles of RESTful Web Services development, followed by converting a POJO to a JAX-RS resource, a RESTful endpoint along with discussing different HTTP verbs and their use.

After the introduction, the chapter dives deeper into the JAX-RS API by introducing the client API to send requests to the resources developed using the JAX-RS APIs. We also covered customizing the entity providers to produce different output formats using MessageBodyReader and MessageBodyWriters. We learned how to validate JAX-RS 2.0 resources using Bean Validation.

In the next chapter, we will cover the different polling techniques, compare and contrast them with Server-sent events (SSE) and WebSockets ...

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