users@jsr311.java.net

ResponseBuilder

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Thu, 12 Jun 2008 22:34:10 +0200

Hi,

If calling ResponseBuilder.type(String), must the String be converted to
a MediaType? Or ResponseBuilder.type(MediaType) be converted to a
String? Or should it not changed in both cases? This should be clear if
a message body writer would reads data from the Response for necessary
casts. A javadoc clarification on both ResponseBuilder.type(.) methods
and Response.getMetadata() would be good.

The same issue exists for both ResponseBuilder.tag(.)

If HttpHeaders.getAcceptedLanguages() returns List<Locale>, than we
should also add ResponseBuilder.language(Locale) and the conversion be
documented.

best regards
   Stephan