users@jersey.java.net

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

From: Arulazi Dhesiaseelan <aruld.info_at_gmail.com>
Date: Thu, 19 Nov 2009 22:57:59 -0700

Thanks Paul.

I am hoping Grizzly supports this in 1.9.19.

-Arul

On Thu, Nov 19, 2009 at 3:02 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:

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


-- 
http://aruld.info