dev@jsr311.java.net

Re: JSR311: Header and Response Code constants

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Fri, 14 Mar 2008 14:53:25 +0100

Hi Bill,
> Add known headers to HttpHeaders class?
Yes, when there is already a class or interface with a matching name.
HttpHeaders.ACCEPT_LANGUAGE is good.
> Add response codes to Response class?
I think Response.OK or Response.NOT_FOUND is not very good. Status.OK
resp. Status.NOT_FOUND is better (or ResponseStatus.OK resp.
ResponseStatus.NOT_FOUND or also Response.Status.OK resp.
Response.Status.NOT_FOUND)

Stephan