Chapter 9. Using Restlet in browsers and mobile devices
This chapter covers
This chapter explains how to access web APIs using Restlet from clients ranging from light web browsers to mobile devices. First, it’s possible to use the Restlet API within a browser, with no additional plug-ins, via the Google Web Toolkit (GWT). This chapter discusses the Restlet edition for GWT, a port of the Restlet client-side API to GWT, and how to use Restlet on the server side to address issues such as cross-domain calls and automatic object serialization. This approach allows Rich Internet Applications (RIA) to consume and modify REST resources.
We then look at the Android OS for mobile devices. It runs a Dalvik virtual machine that understands code compiled from Java source and provides a subset of Java SE APIs, plus specific APIs. We describe how the Restlet edition for Android makes it easy to access the web APIs from Android applications.