users@jersey.java.net

[Jersey] How to get entites (of various type) from ClientResponse

From: Pengfei Di <pengfei.di_at_match2blue.com>
Date: Fri, 18 Mar 2011 09:54:04 +0100

Hello,

I am trying to use ClientResponse to GET some Entity from Server.
However, the Entity has different types. I am not sure how to solve the
problem.
I am following the user guide, and in chapter 3.5.3 it is written that
the EntityTag can be used. But how should I set the Tag? Just set the
class name inside it?
Or, would it be better to write an own |Unmarshaller|?

Thanks for any hints

Pengfei