Alternatively, you might want to look into JBoss RestEasy, which provides a client-side framework to eliminate some of the boilerplate. This uses the resource interfaces (see Chapter 3, Resources) to create client-side stubs.
Due to a fact that @Path
is annotated on
the implementations - not the interfaces - of
ObjectResource
,
ServiceResource
,
SpecsResource
and
UserResource
, it's possible that this approach
will not work until we upgrade the version of RestEasy.