Hi Fabio,

This dependency is only for the FileUploadProvider class. 

The direction I'd like to follow in Restlet 2.1 is to leverage the
ConverterProvider and Restlet's ConverterService instead of duplicating this
logic in all those providers. This will make this Servlet dependency
unnecessary. 

For your case, we should consider pluggable injectors, using the
META-INF/services pattern. I've update the issue containing your patch.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com




-----Message d'origine-----
De : Fabio Mancinelli [mailto:[email protected]] 
Envoyé : jeudi 25 mars 2010 13:39
À : Jerome Louvel
Cc : discuss; Stephan Koops
Objet : Re: Restlet JAX-RS question

Hi again...

by the way the JAX-RS module has already a dependency on the servlet
API
(http://restlet.tigris.org/source/browse/*checkout*/restlet/trunk/modules/or
g.restlet.ext.jaxrs/pom.xml?revision=5522&content-type=text%2Fplain)

-Fabio

On Thu, Mar 25, 2010 at 12:35 PM, Jerome Louvel
<[email protected]> wrote:
> Hi guys,
>
> Sorry for being late to the discussion.
>
> The dependency on the Servlet API is an issue indeed, but I think you
should
> be able to achieve what you want by injecting the Restlet request/response
> and then from that retrieving the Servlet request/response.
>
> org.restlet.ext.servlet.internal.ServletCall class has this static method
to
> help:
> getRequest(org.restlet.Request) : HttpServletRequest
>
> In order to make this more obvious, I've just added to SVN trunk a
> ServletUtils class to the Servlet extension with two static methods to
> easily retrieve the Servlet request/response.
>
> Best regards,
> Jerome Louvel
> --
> Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
> Noelios Technologies ~ http://www.noelios.com
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2593344

Reply via email to