Developing RESTful Web Services with Jersey 2.0

Create RESTful web services smoothly using the robust Jersey 2.0 and JAX-RS APIs

Developing RESTful Web Services with Jersey 2.0

Sunil Gulabani

Create RESTful web services smoothly using the robust Jersey 2.0 and JAX-RS APIs
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.70
RRP $20.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.70
$34.99
$29.99p/m after trial
RRP $20.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783288298
Paperback98 pages

Book Description

JAX-RS 2.0 is an enhanced framework based on RESTful architecture. It provides support for both the client and the server. Jersey 2.0 is the reference implementation of JAX-RS 2.0 (JSR 339 specification). This framework has undergone major revisions. The enhanced framework helps developers to use a low-level and simplified API.

This practical, hands-on guide will help you to create RESTful web services easily with individual aspects of the application requests. It will enable you to learn and implement RESTful web services using the new features included in JAX-RS 2.0. It’s a jump start for those who want to try their hand at the new API. It aims to provide practical knowledge of the API along with detailed understanding.

This book covers the new features of JAX-RS 2.0. It covers the complete lifecycle of a web service, that is, from server side to client side. The book focuses on the server API and the client API.

You will learn how to use the server API in order to create web services that will be deployed on the server. This has all different implementations of HTTP methods and media representations. You will also get acquainted with the client API which specifies how to consume the deployed application’s web services. This includes how to handle different HTTP methods and media representations in response to the web services.

You will also get to know Server Sent Events (SSE), which the server uses to push the data event directly to the client. The book will finally take you through the WADL specification. By the end of the book, you will be well equipped to implement Jersey 2.0 and JAX-RS.

Table of Contents

Chapter 1: Getting Started
What is JAX-RS 2.0?
Ease of using and reusing JAX-RS artifacts
Modules and dependencies
Creating a new project
Summary
Chapter 2: Server API
Root-resource classes
@Path
HTTP methods
Parameter annotations
Subresources
Scope of the root-resource classes
Rules of injection
Deploying a RESTful web service
Summary
Chapter 3: Client API
Consuming web services using a client
Use of Invocation.Builder
Summary
Chapter 4: Common Media-Type Representations
JSON
XML
Multipart
Summary
Chapter 5: Server-Sent Events (SSE)
Getting started
Implementing Server-Sent Events (SSE)
Summary
Chapter 6: WADL
Getting started
Configuration
Summary

What You Will Learn

  • Implement web services using different HTTP methods and *Param Annotations
  • Create resource and sub-resource methods
  • Understand the different rules of injection and the scope of the root resource classes
  • Explore different deployment processes of applications
  • Consume web services along with different HTTP methods and *Param Annotations
  • Get acquainted with different media representations (JSON, XML, and Multipart)
  • Send/push data events from server to client
  • Generate WADL specification

Authors

Table of Contents

Chapter 1: Getting Started
What is JAX-RS 2.0?
Ease of using and reusing JAX-RS artifacts
Modules and dependencies
Creating a new project
Summary
Chapter 2: Server API
Root-resource classes
@Path
HTTP methods
Parameter annotations
Subresources
Scope of the root-resource classes
Rules of injection
Deploying a RESTful web service
Summary
Chapter 3: Client API
Consuming web services using a client
Use of Invocation.Builder
Summary
Chapter 4: Common Media-Type Representations
JSON
XML
Multipart
Summary
Chapter 5: Server-Sent Events (SSE)
Getting started
Implementing Server-Sent Events (SSE)
Summary
Chapter 6: WADL
Getting started
Configuration
Summary

Book Details

ISBN 139781783288298
Paperback98 pages
Read More

Read More Reviews

Recommended for You

Java EE 7 Developer Handbook Book Cover
Java EE 7 Developer Handbook
$ 35.99
$ 25.20
Java 7 Concurrency Cookbook Book Cover
Java 7 Concurrency Cookbook
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
RESTful Java Patterns and Best Practices Book Cover
RESTful Java Patterns and Best Practices
$ 16.99
$ 11.90
Apache Maven 3 Cookbook Book Cover
Apache Maven 3 Cookbook
$ 23.99
$ 16.80
AngularJS UI Development Book Cover
AngularJS UI Development
$ 26.99
$ 18.90