Professional Documents
Culture Documents
7.7
ZZZLWHERRNVLQIR
In this chapter you learned best practices that, taken together, make the difference
between a prototype Restlet application and a more mature one suitable for production.
You first saw how to complete an application with the usual web elements manipulated in most web APIs and websites, such as HTML forms handling, static file serving,
and cookie manipulation. Each feature has been carefully illustrated in the context of
the ongoing mail server example.
You also learned two complementary ways to handle web feeds in the Atom and
RSS formats using two Restlet extensions, comparing the advantages and disadvantages of each of them. Then you learned how to redirect client calls, either manually
by setting the proper HTTP statuses or more automatically and powerfully with the
Redirector class.
We also discussed performance and modularization aspects in order to deal with
applications growing in size and complexity. We looked at HTTP built-in features such
a conditional method processing, entity compression, and caching support. We also
introduced Restlet-specific features such as the server dispatcher, the internal router,
and the RIAP pseudoprotocol to communicate optimally inside a Restlet component.
Youll now continue exploring further Restlet Framework possibilities, such as
deployment in cloud computing, web browsers, and smartphonesand innovative
semantic web support.
199
7.6.3
Summary
ZZZLWHERRNVLQIR