users@jersey.java.net

Re: [Jersey] Exception free way to use WebResources

From: Martin Probst <mail_at_martin-probst.com>
Date: Wed, 15 Jul 2009 12:22:25 +0200

> Is there an exception free way to use WebResource?

You can do resource.get(ClientResponse.class), which will return
(surprise!) a ClientResponse object, and not throw an exception for
e.g. 404s. ClientResponse then has a getEntity(Class) method that you
can use to access your entity.

Martin