REST Integration is a Piece of Cake on the NetBeans Platform

Integration of REST resources into NetBeans Platform applications is trivial in 6.9—there's a new wizard in NetBeans IDE that lets you select a REST resource in the IDE:

Once selected above, lots of code is generated for making the connection to your REST resource, together with a client stub for further development in your application. I didn't need to do much work to integrate the Yahoo news service into a small application, as can be seen below (click to enlarge):

In the screenshot above, I only needed to create a TopComponent and a ChildFactory, after which I called into the generated client stub (where I hardcoded "oil" as my search string), which automatically hooked into the REST connection classes that had been created by the wizard. So, now I can focus on my domain only, which simply needs integration with the Yahoo news service, rather than needing to learn the low level details of how REST works. Hurray.

In other news. Now read the new tutorial Creating RESTful Service Clients in NetBeans Modules, which tells you everything you need to know.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today