Hi Marc,

Could you try the static ServletCall#getRequest(Request request):
HttpServletRequest?
If it doesn't work, then something change in the code during Restlet 2.0
refactoring. Which version are you using BTW?

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




-----Message d'origine-----
De : Marc Lerma [mailto:[email protected]] 
Envoyé : mardi 9 juin 2009 15:54
À : [email protected]
Objet : RE: from the org.restlet.data.Request, get the HttpServletRequest

Hi Jerome, 

I've just come across the same problem. I need to get the HttpServletRequest
from org.restlet.data.Request. I've been trying your code but it's not
working properly for me. 

It fails here in the following sentence: 

 if (httpCall instanceof ServletCall)  

It just won't enter the 'if' block as httpCall is not an instance of
ServletCall.


I need to get a HttpServletRequest because my app works with some services
already defined and developed which need this. I'm trying to integrate REST
with this so that I can consider every single service as a REST resource
with an URI associated to it. 

So, how could I get an HttpServletRequest from a org.restlet.data.Request ?

any ideas?

thank you!

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

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

Reply via email to