Tuomas Kiviaho wrote:
> Please note also this draft 27 clarification
I just downloaded Draft 28.
> For the RENDER RESPONSE the setContentType method must throw an
> IllegalArgumentException if the content type set does not match
> (including wildcard matching) any of the content types returned
> by the getResponseContentType...
> I'd interpret that resource response falls outside matching process
That appears to be described by the ChangeLOg for Draft 22:
- no IllegalStateExc for MimeResponse in the serveResource case
> and getWriter is allowed without explicit setContentType call.
That is indicated in the ChangeLog for Draft 18:
- removed the restriction to set a content type before getting a writer
The ChangeLog can be handy to detect intended change from editorial glitch.
--- Noel