Stephan Koops wrote:
> Hello Bill,
>
> this is a good idea.
> Is it possible, to support @ProduceMime(MediaType.APPLICATION_XML), and
> also make MediaType.APPLICATION_XML available as a
> jawax.ws.rs.core.MediaType (e.g. for ResponseBuilder.type(MediaType),
> for compariosns of HttpHeaders.getMediaType() and
> HttpHeaders.getAcceptableMediaTypes and so on.
>
> IMO it is good to put the http header names in one class/interface (e.g.
> HttpHeaders), the status codes to another class/interface (e.g. Status)
> and so on. IMO Status.OK is better than HttpConstants.STATUS_OK or
> something like that.
>
Add response codes to Response class?
Add known headers to HttpHeaders class?
Or have separate standalone interfaces for each?
Bill
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com