There's a problem with these methods (and other's like it):
<T> T get(Class<T> responseType) throws InvocationException;
<T> T get(GenericType<T> responseType) throws InvocationException;
Currently InvocationException doesn't have a reference to the
HttpResponse. A user will many times be interested in the status code
and sometimes even the representation of the failure.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com