PacktLib: Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Preface

Building RESTful Web Services Using JAX-RS

Understanding REST

RESTful Web Services

Verbs in REST

Introduction to JAX-RS

Summary

WebSockets and Server-sent Events

The programming models

Emerging standards

Java EE and the emerging standards

Comparison and use cases of different programming models and standards

Summary

Understanding WebSockets and Server-sent Events in Detail

Encoders and decoders in Java API for WebSockets

The Java WebSocket Client API

Sending different kinds of message data: blob/binary

Security and WebSockets

Best practices for WebSockets based applications

Server-sent Events

Best practices for applications based on Server-sent Events

Summary

JSON and Asynchronous Processing

Producing and parsing JSON documents

Introducing Servlet 3.1

New features in JAX-RS 2.0

Asynchronous processing in EJB 3.1 and 3.2

Summary

RESTful Web Services by Example

Event notification application

The library application

Summary

Index