Hi Sam,

when handling a Request/Response pair in the context of a servlet 
container, the outputStream of the response is the one of the 
HttpServletResponse object.
In the case of the OutputRepresentation, any subclasses are required to 
override the "write(OutputStream)" method, where the given outputStream 
is the response's one, that is to say the one of the HttpServletResponse 
object.

I hope this will help you.

Best regards,
Thierry Boileau

> Ok, I have a related question.  I've found out how to get to the 
> HttpServletResponse object and have passed that to the Blobstore API, where 
> it was successfully written to and committed.  Is there an example of how to 
> turn that HttpServletResponse object into a Representation that can be 
> returned to the Restlet framework?  I'm guessing I want to use the 
> OutputRepresentation, but I'm not super clear on how that should work.
>
> Thanks,
> Sam
>
>    
>> Hello Sam,
>>
>> At this moment, nothing is available in the framework to get access to
>> the servlet's response which could help you to support the Blobstore API.
>> You can have a look at the code of the ServerServlet and Servlet Call
>> classes of the Servlet extension.
>> There is also an issue in order to support this feature:
>> http://restlet.tigris.org/issues/show_bug.cgi?id=998.
>>
>> Best regards,
>> Thierry Boileau
>>
>>      
>>> I'm using Restlet with GAE, and the GAE Blobstore API requires a 
>>> HttpServletRequest object for uploading blobs and a HttpServletResponse 
>>> object for serving them.  I found the static 
>>> ServletCall#getRequest(Request) method to get the HttpServletRequest object 
>>> from a restlet Request object, but is there a similar way to get the 
>>> HttpServletResponse object from the restlet Response?
>>>
>>> Thanks,
>>> Sam
>>>
>>> ------------------------------------------------------
>>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2435938
>>>
>>>
>>>        
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2437114
>
>

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

Reply via email to