users@jersey.java.net

Re: [Jersey] Handing "Expect: 100-Continue" header

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 19 Nov 2009 11:02:26 +0100

On Nov 17, 2009, at 4:31 AM, Arulazi Dhesiaseelan wrote:

> 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].

Right.


> 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.
>


100 continue is currently not supported by JAX-RS or Jersey. I would
like to experiment by having a special 100-continue resource method
set up that provides the necessary call-back function to return the
response entity, if required. But that will require support from
Grizzly (+ Grizzly in GF).

Paul.

> 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