Chapter 2. Beginning a Restlet application
This chapter covers
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.