contents

foreword
preface
acknowledgments
about this book
about the cover illustration

Part 1 Getting started

Chapter 1 Introducing the Restlet Framework
“Hello World” with Restlet
Overview of the Restlet Framework
Summary
Chapter 2 Beginning a Restlet application
The purpose of Restlet applications
The structure of Restlet applications
Setting up a Restlet application
The Restlet routing system
Using Restlet resources in an application
Summary
Chapter 3 Deploying a Restlet application
The purpose of Restlet components
The structure of Restlet components
Standalone deployment with Java SE
Declarative configuration in XML
Deployment in an existing Java EE server
Summary

Part 2 Getting ready to roll out

Chapter 4 Producing and consuming Restlet representations
Overview of representations
Producing and consuming XML representations
Producing and consuming JSON representations
Applying template representations
Content negotiation
Summary
Chapter 5 Securing a Restlet application
Ensuring transport confidentiality and integrity
Authenticating users
Assigning roles to authenticated users
Authorizing user actions
Ensuring end-to-end integrity of data
Summary
Chapter 6 Documenting and versioning a Restlet application
The purpose of documentation and versioning
Introducing WADL
The WadlApplication class
The WadlServerResource class
Automatic conversion to HTML
Summary
Chapter 7 Enhancing a Restlet application with recipes and best practices
Handling common web elements
Dealing with Atom and RSS feeds
Redirecting client calls
Improving performances
Modularizing large applications
Persisting resources state
Summary

Part 3 Further use possibilities

Chapter 8 Using Restlet with cloud platforms
Restlet main benefits in the cloud
Deployment in Google App Engine
Deployment in Amazon Elastic Beanstalk
Deployment in Windows Azure
Accessing web APIs from GAE
Accessing OData services
Accessing Amazon S3 resources
Accessing Azure services
Accessing intranet resources with Restlet’s SDC extension
Summary
Chapter 9 Using Restlet in browsers and mobile devices
Understanding GWT
The Restlet edition for GWT
Server-side GWT extension
Understanding Android
The Restlet edition for Android
Summary
Chapter 10 Embracing hypermedia and the Semantic Web
Hypermedia as the engine of RESTful web APIs
The Semantic Web with Linked Data
Exposing and consuming Linked Data with Restlet
Summary
Chapter 11 The future of Restlet
Evolution of HTTP and the rise of SPDY
The Restlet roadmap
Restlet community
Summary

appendixes

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

                             references

                             index