Re: JSR311: Why Response.getMetaData()

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Thu, 28 Feb 2008 08:58:41 -0500

On Feb 27, 2008, at 8:50 PM, Bill Burke wrote:

> Why is it named Response.getMetaData() and not
> Response.getHeaders()? Is there some other type of metadata beyond a
> header?
IIRC, folks preferred the more abstract name.

> Should getMetaData() even be exposed as a method on Response?
Yes. A developer can implement a concrete subclass of Response if they
wish, getMetadata is part of the contract that allows an
implementation to get the necessary information from any subclass, not
just the one it provides.


Marc Hadley <marc.hadley at>
CTO Office, Sun Microsystems.