On 07/06/2011 02:39 AM, Jitesh wrote:
> Thanks Jason.Three questions -
>
> a.)How do I read the header on client side?
ClientResponse cr = webResource.get(ClientResponse.class);
cr.getHeaders()... // see [1]
> b.)Why am I getting blank value even when I am setting only one value - as I
> mentioned in my post#2 of this thread?
I don't know. You might want to check out Jersey hello-world examples
[2], [3],
which do exactly that (pass String from server to client) without any
issues.
> c.)Can't I set multiple values in a list, add that to Response and then get
> it on client side?If yes,how do I do it?
You would need to implement a custom message body reader/writer [4], [5]
for that.
See [6] for an example.