Figure 12-19. JAX-RS 2.0 Interceptor Generated File
One of the most useful additions to JAX-RS 2.0 is the ability to generate RESTful clients. NetBeans 7.3 accommodates
Let's begin by looking at the procedure to generate a RESTful Java client using the NetBeans wizard.
Right-click on a project directory or select “File” ➤ “New File” from the NetBeans File
menu to open the “New File” dialog.
Select “Web Services” from the “Categories” select box, and then select “RESTful
Java Client” from the “File Types” select box (Figure 12-20 ). Add a name for the client,
along with the type of REST resource, whether it belongs to a project within the IDE,
or if it has been registered as a cloud service with the IDE (such as Google or Amazon).
Lastly, provide a type of authentication for the client.