Chapter 9. Using Restlet in browsers and mobile devices

 

This chapter covers

  • Restlet editions for GWT and Android
  • Using REST within GWT applications with Restlet
  • Using REST within Android-based mobile devices with Restlet

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.

9.1. Understanding GWT

 
 
 

9.2. The Restlet edition for GWT

 
 
 
 

9.3. Server-side GWT extension

 
 
 

9.4. Understanding Android

 
 

9.5. The Restlet edition for Android

 
 

9.6. Summary

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest