Chapter 2. Beginning a Restlet application

 

This chapter covers

  • Setting up a Restlet application
  • Filtering and dispatching calls with Restlet’s routing system
  • Using client-side and server-side Restlet resources
  • Method-overriding and annotation-based resource implementation

In chapter 1 we introduced the Restlet Framework with a basic demonstration of a single resource implementation. In this chapter you’ll see the first structuring features of the framework with Restlet applications.

After learning the purpose of Restlet applications, you’ll see how to set them up, how to filter and dispatch calls with the Restlet routing system, and how to use Restlet resources as targets or sources of calls. We also show how to implement resources using annotations as an alternative to overriding methods.

We want to begin with a solid foundation for developing Restlet applications, so we won’t go into full details now; we cover aspects such as Restlet representations, security, and documentation later in the book. As in real projects, we’ll need to iterate several times before we end up with a fully featured Restlet application. For now, let’s start with background information about Restlet applications.

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

sitemap