Restlet in Action
Developing RESTful web APIs in Java
Jerome Louvel, Thierry Templier, and Thierry Boileau
Foreword by Brian Sletten
  • September 2012
  • ISBN 9781935182344
  • 464 pages
  • printed in black & white

Broad, deep, and example-driven.

From the Foreword by Brian Sletten, Bosatsu Consulting

Restlet in Action gets you started with the Restlet Framework and the REST architecture style. You'll create and deploy applications in record time while learning to use popular RESTful Web APIs effectively. This book looks at the many aspects of web development, on both the server and client side, along with cloud computing, mobile Android devices, and Semantic Web applications.

Table of Contents show full




about this book

about the cover illustration

Part 1 Getting started

1. Introducing the Restlet Framework

1.1. "Hello World" with Restlet

1.2. Overview of the Restlet Framework

1.3. Summary

2. Beginning a Restlet application

2.1. The purpose of Restlet applications

2.2. The structure of Restlet applications

2.3. Setting up a Restlet application

2.4. The Restlet routing system

2.5. Using Restlet resources in an application

2.6. Summary

3. Deploying a Restlet application

3.1. The purpose of Restlet components

3.2. The structure of Restlet components

3.3. Standalone deployment with Java SE

3.4. Declarative configuration in XML

3.5. Deployment in an existing Java EE server

3.6. Summary

Part 2 Getting ready to roll out

4. Producing and consuming Restlet representations

4.1. Overview of representations

4.2. Producing and consuming XML representations

4.3. Producing and consuming JSON representations

4.4. Applying template representations

4.5. Content negotiation

4.6. Summary

5. Securing a Restlet application

5.1. Ensuring transport confidentiality and integrity

5.2. Authenticating users

5.3. Assigning roles to authenticated users

5.4. Authorizing user actions

5.5. Ensuring end-to-end integrity of data

5.6. Summary

6. Documenting and versioning a Restlet application

6.1. The purpose of documentation and versioning

6.2. Introducing WADL

6.3. The WadlApplication class

6.4. The WadlServerResource class

6.5. Automatic conversion to HTML

6.6. Summary

7. Enhancing a Restlet application with recipes and best practices

7.1. Handling common web elements

7.2. Dealing with Atom and RSS feeds

7.3. Redirecting client calls

7.4. Improving performances

7.5. Modularizing large applications

7.6. Persisting resources state

7.7. Summary

Part 3 Further use possibilities

8. Using Restlet with cloud platforms

8.1. Restlet main benefits in the cloud

8.2. Deployment in Google App Engine

8.3. Deployment in Amazon Elastic Beanstalk

8.4. Deployment in Windows Azure

8.5. Accessing web APIs from GAE

8.6. Accessing OData services

8.7. Accessing Amazon S3 resources

8.8. Accessing Azure services

8.9. Accessing intranet resources with Restlet’s SDC extension

8.10. Summary

9. Using Restlet in browsers and mobile devices

9.1. Understanding GWT

9.2. The Restlet edition for GWT

9.3. Server-side GWT extension

9.4. Understanding Android

9.5. The Restlet edition for Android

9.6. Summary

10. Embracing hypermedia and the Semantic Web

10.1. Hypermedia as the engine of RESTful web APIs

10.2. The Semantic Web with Linked Data

10.3. Exposing and consuming Linked Data with Restlet

10.4. Summary

11. The future of Restlet

11.1. Evolution of HTTP and the rise of SPDY

11.2. The Restlet roadmap

11.3. Restlet community

11.4. Summary


Appendix A: Overview of the Restlet Framework

Appendix B: Installing the Restlet Framework

Appendix C: Introducing the REST architecture style

Appendix D: Designing a RESTful web API

Appendix E: Mapping REST, HTTP, and the Restlet API

Appendix F: Getting additional help



About the Technology

In a RESTful architecture any component can act, if needed, as both client and server—this is flexible and powerful, but tricky to implement. The Restlet project is a reference implementation with a Java-based API and everything you need to build servers and web clients that integrate with most web and enterprise technologies.

About the book

Restlet in Action introduces the Restlet Framework and RESTful web APIs. Youll see how to easily create and deploy your own web API while learning to consume other web APIs effectively. You'll learn about designing, securing, versioning, documentation, optimizing, and more on both the server and client side, as well as about cloud computing, mobile Android devices, and Semantic Web applications.

What's inside

  • Written by the creators of Restlet!
  • How to create your own web API
  • How to deploy on cloud and mobile platforms
  • Focus on Android, Google App Engine, Google Web Toolkit, and OSGi technologies

About the reader

The book requires a basic knowledge of Java and the web, but no prior exposure to REST or Restlet.

About the authors

Jerome Louvel is cofounder and CEO of Restlet Inc. and Restlet SAS, and the creator of the Restlet Framework. Thierry Templier is an R&D architect at Restlet SAS, and a core developer of the Restlet Framework. Thierry Boileau is cofounder of Restlet SAS, an open source community manager, and core developer of the Restlet Framework.

combo $49.99 pBook + eBook
eBook $39.99 pdf + ePub + kindle

FREE domestic shipping on three or more pBooks

Accurate, informative, and extremely useful.

Dustin Jenkins, National Research Council of Canada

A must-have for RESTful web services Java developers.

Fabián Mandelbaum, NeoDoc SARL

A broad reach for a perfectly minimalist framework.

Tal Liron, Three Crickets

Thoroughly recommended ... helps the reader come to grips with REST.

Dave Pawson, Pawson Software Services, Ltd