users@jersey.java.net

Handing "Expect: 100-Continue" header

From: Arulazi Dhesiaseelan <aruld.info_at_gmail.com>
Date: Mon, 16 Nov 2009 20:31:15 -0700

Hi,

How do I handle a Expect header in Jersey? Is this beyond the scope of
Jersey (may be JAX-RS) and should be handled by the web server. Grizzly has
a known bug [1].
I do see the response status [2] defined in ClientResponse.Status used when
the expectation fails. But, not sure how this status could be sent from a
resource.

Cheers,
Arul


[1] https://glassfish.dev.java.net/issues/show_bug.cgi?id=5320
[2]
https://jersey.dev.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/client/ClientResponse.Status.html#EXPECTATION_FAILED