users@jersey.java.net

Re: Using HttpServletRequest/HttpServletResponse

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 17 Sep 2007 17:36:41 +0200

Paul Sandoz wrote:
> Dan Diephouse wrote:
>>> Good to know thanks for the feedback, please let us know if anything
>>> does not work or is problematic for you and we can try to resolve it.
>>>
>>
>> Everything went very well so far. I have to say it was way way easier to
>> integrate than I thought it would be.
>
> That is great to hear. I reckon it should be possible to improve things,
> for example i notice you are depending on:
>
> com.sun.ws.rest.impl.HttpRequest/ResponseContextImpl
>
> so i should move these to the API.
>
> As it happens i am currently working on this area to clear up the
> confusion of encoded/decoded space of a request URI and URI templates,
> for example handling a request URI path "/a%20b/". So while i am it i
> can make the contract clearer and less fragile.
>

I have improved the abstract request/response classes that a container
uses and moved them to the SPI, see [1, 2]. You can look at the servlet
request [3] and response [4] for an example. Hopefully you will agree
with me that it is a bit clearer and more stable than the previous solution.

This will be part of the 0.3 stable release.

Paul.

[1]
https://jersey.dev.java.net/source/browse/jersey/trunk/jersey/src/spi/com/sun/ws/rest/spi/container/AbstractContainerRequest.java?view=markup
[2]
https://jersey.dev.java.net/source/browse/jersey/trunk/jersey/src/spi/com/sun/ws/rest/spi/container/AbstractContainerResponse.java?view=markup
[3]
https://jersey.dev.java.net/source/browse/jersey/trunk/jersey/src/impl/com/sun/ws/rest/impl/container/servlet/HttpRequestAdaptor.java?view=markup
[4]
https://jersey.dev.java.net/source/browse/jersey/trunk/jersey/src/impl/com/sun/ws/rest/impl/container/servlet/HttpResponseAdaptor.java?view=markup

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109