O'Reilly logo

RESTful Java Web Services by Jose Sandoval

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Accessing RESTful Services — Part 1

The Java technology stack provides multiple client options, including command-line applications, desktop applications, and web applications. Our job in this chapter is to code all these client types as RESTful Java clients that connect and consume RESTful web services. The service we'll use for all our examples is the messaging API provided by Twitter (http://www.twitter.com/). Note that you don't have to have a Twitter account or know what Twitter is to take full advantage of all the code samples in this chapter.

Getting the tools

For this chapter, we need the latest Java JDK available—version 6 or later will work fine. Because we use the Jakarta Commons HTTPClient package, we also need the Commons ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required