users@jersey.java.net

_at_Produces bug?

From: <cn_at_cn-consult.dk>
Date: Thu, 19 Mar 2009 08:41:56 +0100 (CET)

Hi.

After reading thr JAX-RS spec I had the impression that this:

@HEAD
@Produces({MediaType.TEXT_PLAIN, MediaType.TEXT_HTML})
public void head() {
}

should ensure that all "head" requests with mediatype "text/plain" or
"text/html" recieves an 204 respons.

Jersey seems to diasagree. If i only specify one MediaType, like this:

@HEAD
@Produces(MediaType.TEXT_PLAIN)
public void head() {
}

I do get an 204 response for "text/plain" head requests, but shouldn't
@Produces support specifying more than one MediaType?

Best regards
Claus Nielsen