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