Amazon cover image
Image from Amazon.com

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

By: Contributor(s): Material type: TextTextPublication details: Birmingham : Packt Publishing, 2013.Description: 1 online resource (128 pages)Content type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 9781782178132
  • 1782178139
  • 1782178120
  • 9781782178125
Subject(s): Genre/Form: Additional physical formats: Print version:: Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON.DDC classification:
  • 006.7
LOC classification:
  • TK5105.888 .K384 2013
Online resources:
Contents:
Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Building RESTful Web Services Using JAX-RS; Understanding REST; RESTful Web Services; Verbs in REST; Safety and idempotence; Introduction to JAX-RS; Converting POJOs to RESTful resources; Defining a root resource as identified by a URI; Defining the methods for the resource; Defining the MIME types; Defining the Application subclass; Defining the subresources; More on JAX-RS annotations; The Client API for JAX-RS; Entities in JAX-RS; Custom entity providers in JAX-RS.
MessageBodyReaderMessageBodyWriter; Using the Bean Validation API with JAX-RS; Enabling validation in the application; Reading validation errors from the response; Summary; Chapter 2: WebSockets and Server-sent Events; The programming models; Polling; Long polling; Chunked transfer encoding; Emerging standards; Server-sent Events; The SSE anatomy; Associating an ID with an event; Connection loss and reconnecting retries; Associating event names with events; Server-sent Events and JavaScript; WebSockets; Web socket handshake; Browser and JavaScript support for WebSockets.
Java EE and the emerging standardsJava EE and Server-sent Events; Java EE and WebSockets; Comparison and use cases of different programming models and standards; Summary; Chapter 3: 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; Throttling the rate of sending data; Controlling the maximum size of the message; Working with proxy servers and WebSockets; Server-sent Events.
Developing a Server-sent Event client using Jersey APIBest practices for applications based on Server-sent Events; Checking if the event source's origin is as expected; Working with proxy servers and Server-sent Events; Handling fault tolerance for Server-sent Events; Summary; Chapter 4: JSON and Asynchronous Processing; Producing and parsing JSON documents; An overview of JSON API; Manipulating JSON documents using the event-based API; Producing JSON documents; Parsing JSON documents; Manipulating JSON documents using the JSON object model; Generating JSON documents; Parsing JSON documents.
When to use the streaming versus the object APIIntroducing Servlet 3.1; NIO API and Servlet 3.1; Introducing ReadListener and WriteListener; Changes in the Servlet API interfaces; More changes in Servlet 3.1; New features in JAX-RS 2.0; Asynchronous request and response processing; Filters and interceptors; Asynchronous processing in EJB 3.1 and 3.2; Developing an asynchronous session bean; Developing a client servlet for the async session bean; Summary; Chapter 5: RESTful Web Services by Example; Event notification application; The project's layout; The event notification GUI.
Summary: Written as an easy and practical guide, this book is a crash course on using JAX-RS 2.0, JSON, and WebSockets to develop RESTful services. Getting Started with Developing RESTful Web Services using JAX-RS 2.0, JSON, and WebSockets is a perfect reading source for application developers who are familiar with Java EE and are keen to understand the new HTML5-related functionality introduced in Java EE 7 to improve productivity. To take full advantage of this book, you need to be familiar with Java EE and have some basic understanding of using the GlassFish application server.
Item type:
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Home library Collection Call number Materials specified Status Date due Barcode
Electronic-Books Electronic-Books OPJGU Sonepat- Campus E-Books EBSCO Available

Print version record.

Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Building RESTful Web Services Using JAX-RS; Understanding REST; RESTful Web Services; Verbs in REST; Safety and idempotence; Introduction to JAX-RS; Converting POJOs to RESTful resources; Defining a root resource as identified by a URI; Defining the methods for the resource; Defining the MIME types; Defining the Application subclass; Defining the subresources; More on JAX-RS annotations; The Client API for JAX-RS; Entities in JAX-RS; Custom entity providers in JAX-RS.

MessageBodyReaderMessageBodyWriter; Using the Bean Validation API with JAX-RS; Enabling validation in the application; Reading validation errors from the response; Summary; Chapter 2: WebSockets and Server-sent Events; The programming models; Polling; Long polling; Chunked transfer encoding; Emerging standards; Server-sent Events; The SSE anatomy; Associating an ID with an event; Connection loss and reconnecting retries; Associating event names with events; Server-sent Events and JavaScript; WebSockets; Web socket handshake; Browser and JavaScript support for WebSockets.

Java EE and the emerging standardsJava EE and Server-sent Events; Java EE and WebSockets; Comparison and use cases of different programming models and standards; Summary; Chapter 3: 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; Throttling the rate of sending data; Controlling the maximum size of the message; Working with proxy servers and WebSockets; Server-sent Events.

Developing a Server-sent Event client using Jersey APIBest practices for applications based on Server-sent Events; Checking if the event source's origin is as expected; Working with proxy servers and Server-sent Events; Handling fault tolerance for Server-sent Events; Summary; Chapter 4: JSON and Asynchronous Processing; Producing and parsing JSON documents; An overview of JSON API; Manipulating JSON documents using the event-based API; Producing JSON documents; Parsing JSON documents; Manipulating JSON documents using the JSON object model; Generating JSON documents; Parsing JSON documents.

When to use the streaming versus the object APIIntroducing Servlet 3.1; NIO API and Servlet 3.1; Introducing ReadListener and WriteListener; Changes in the Servlet API interfaces; More changes in Servlet 3.1; New features in JAX-RS 2.0; Asynchronous request and response processing; Filters and interceptors; Asynchronous processing in EJB 3.1 and 3.2; Developing an asynchronous session bean; Developing a client servlet for the async session bean; Summary; Chapter 5: RESTful Web Services by Example; Event notification application; The project's layout; The event notification GUI.

Written as an easy and practical guide, this book is a crash course on using JAX-RS 2.0, JSON, and WebSockets to develop RESTful services. Getting Started with Developing RESTful Web Services using JAX-RS 2.0, JSON, and WebSockets is a perfect reading source for application developers who are familiar with Java EE and are keen to understand the new HTML5-related functionality introduced in Java EE 7 to improve productivity. To take full advantage of this book, you need to be familiar with Java EE and have some basic understanding of using the GlassFish application server.

eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - Worldwide

There are no comments on this title.

to post a comment.

O.P. Jindal Global University, Sonepat-Narela Road, Sonepat, Haryana (India) - 131001

Send your feedback to glus@jgu.edu.in

Hosted, Implemented & Customized by: BestBookBuddies   |   Maintained by: Global Library