ublic class WidgetResource {

    &#64;GET
    public String getWidget(&#64;PathParam("widgetid") String id) {
        return getWidgetAsXml(id);
    }

    &#64;PUT
    public void updateWidget(&#64;PathParam("widgetid") String id,
                             Source update) {
       updateWidgetFromXml(id, update);
    }

    ...
}
</pre>

<h1 id="web-resource-clients-heading">Web resource clients</h1>

<p>JAX-RS client API is a Java based API used to access resources on the Web. It is not restricted
    