users@jsr311.java.net

Re: Response Metadata

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 07 Aug 2008 11:47:27 -0400

I kinda wish getMetaData was called getResponseHeaders()...

I always thought that the rules were:

* If there is a HeaderDelegate use that
* If no HeaderDelegate use the toString() method

Reto Bachmann-Gmür wrote:
> Hello
>
> From the javadoc and the spec it is not clear to me how
> Response.getMetaData is supposed to work. I assume this is the way to
> set response-headers fields, but this is just a guess and I could go on
> guessing on how key and values are transformed into characters allowed
> in header names and values. But I thought I ask for a pointer first.
>
> Cheers,
> Reto
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com