tags:

views:

58

answers:

2

How would you consume a RESTful API using Java with probably just the standard packages? For ex: Twitter API. I know there are great Java libraries to access it, but how would you start from scratch?

+1  A: 

Well, there are many ways you could access RESTful API using Java third party libraries, like using Apache Http Client or using Sun Jersey API.

You could also use the native java.net.HttpURLConnection to consume REST Services

James Khoo
+1  A: 

Spring 3's MVC can handle REST. Take a look at this blog entry for an idea of how it works.

Noel M