RESTful Java Web Services

Master core REST concepts and create RESTful web services in Java
Preview in Mapt

RESTful Java Web Services

Jose Sandoval

1 customer reviews
Master core REST concepts and create RESTful web services in Java
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.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
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


RESTful Java Web Services Book Cover
RESTful Java Web Services
$ 23.99
$ 16.80
RESTful Java Web Services - Third Edition Book Cover
RESTful Java Web Services - Third Edition
$ 35.99
$ 25.20
Buy 2 for $34.30
Save $25.68
Add to Cart
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
 

Book Details

ISBN 139781847196460
Paperback256 pages

Book Description

If you are already familiar with REST theory but are new to RESTful Java web services, and want to use the Java technology stack together with Java RESTful frameworks to create robust web services, this is the book for you.

This book is a guide to developing RESTful web services using Java and the most popular RESTful frameworks available today. It covers the theory of REST; practical coding examples for RESTful clients; a practical outline of the RESTful design process—yes, it's different from traditional web application development; and a complete implementation of a non-trivial web service using the following frameworks: Jersey's JAX-RS, Restlet's Lightweight REST, JBoss's JAX-RS RESTEasy, and Struts 2 with the REST plug-in.

We begin with an introduction to REST theory, for example, what it means for a web service to be RESTful, what it means for a web service to exchange representations of resources, and what it means to only use the conventional HTTP request method types—GET, POST, PUT, DELETE—for client/server communication. Before moving into the design and implementation process of a non-trivial web service, we look at a set of sample Java applications that connect to existing REST services that are freely available (Google, Yahoo, Twitter). We then outline a practical design process for RESTful web services and then cover the four most widely used frameworks available to date: JAX-RS implementations such as Jersey and RESTEasy, the Restlet framework, and Struts 2 with the REST plug-in. We cover each framework in detail to allow you to compare the strengths and weaknesses of each framework and to begin developing your own web services after the first reading; what's more, the whole source is included for you to modify and deploy in your own web services. Finally, we discuss the most common performance issues faced by RESTful web services and cover practical solutions to security-related issues such as authentication and data transfer.

Table of Contents

Chapter 1: RESTful Architectures
What is REST?
Resources
Representation
URI
Uniform interfaces through HTTP requests
Web services and the big picture
Summary
Chapter 2: Accessing RESTful Services — Part 1
Getting the tools
RESTful clients
Summary
Chapter 3: Accessing RESTful Services — Part 2
Getting the tools
Semantic search mashup
Summary
Chapter 4: RESTful Web Services Design
Designing a RESTful web service
Chapter 5: Jersey: JAX-RS
Getting the tools
JAX-RS
Jersey the JAX-RS 1.1 reference implementation
Annotations
Web service architecture
Persistence layer
RESTful web service implementation with Jersey
Using this RESTful web service
Summary
Chapter 6: The Restlet Framework
Getting the tools
Restlet
Restlet 1.1
Implementation using Restlet 1.1
Restlet 2.0
Implementation using Restlet 2.0
Summary
Chapter 7: RESTEasy: JAX-RS
Getting the tools
RESTEasy — a JAX-RS implementation
Web service architecture
RESTful web service implementation with RESTEasy
Summary
Chapter 8: Struts 2 and the REST Plugin
Getting the tools
Struts 2
Web service architecture
RESTful web service implementation with Struts 2
Summary
Chapter 9: Restlet Clients and Servers
Getting the tools
Restlet standalone applications
Summary
Chapter 10: Security and Performance
Security
Performance
Summary

What You Will Learn

  • REST architecture basics
  • What it means for a web service to be RESTful
  • How to connect to and consume RESTful web services such as Yahoo or Google
  • A RESTful web service design heuristic
  • How to deploy web services to Java web containers such as Tomcat and JBoss
  • How to implement an entire web service using the most popular open source frameworks currently available, including JAX-RS implementations Jersey and RESTEasy, Restlet, and Struts 2 with the REST plug-in
  • How to create standalone Java web services using the Restlet framework
  • How you can secure RESTful web services

Authors

Table of Contents

Chapter 1: RESTful Architectures
What is REST?
Resources
Representation
URI
Uniform interfaces through HTTP requests
Web services and the big picture
Summary
Chapter 2: Accessing RESTful Services — Part 1
Getting the tools
RESTful clients
Summary
Chapter 3: Accessing RESTful Services — Part 2
Getting the tools
Semantic search mashup
Summary
Chapter 4: RESTful Web Services Design
Designing a RESTful web service
Chapter 5: Jersey: JAX-RS
Getting the tools
JAX-RS
Jersey the JAX-RS 1.1 reference implementation
Annotations
Web service architecture
Persistence layer
RESTful web service implementation with Jersey
Using this RESTful web service
Summary
Chapter 6: The Restlet Framework
Getting the tools
Restlet
Restlet 1.1
Implementation using Restlet 1.1
Restlet 2.0
Implementation using Restlet 2.0
Summary
Chapter 7: RESTEasy: JAX-RS
Getting the tools
RESTEasy — a JAX-RS implementation
Web service architecture
RESTful web service implementation with RESTEasy
Summary
Chapter 8: Struts 2 and the REST Plugin
Getting the tools
Struts 2
Web service architecture
RESTful web service implementation with Struts 2
Summary
Chapter 9: Restlet Clients and Servers
Getting the tools
Restlet standalone applications
Summary
Chapter 10: Security and Performance
Security
Performance
Summary

Book Details

ISBN 139781847196460
Paperback256 pages
Read More
From 1 reviews

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
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Apache Maven 3 Cookbook Book Cover
Apache Maven 3 Cookbook
$ 23.99
$ 16.80
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80