I am streaming content to my rest end-point and I have implemented it as a ServerResource. Consuming the incoming stream is not a problem but while processing the input I do want to start feeding info back to the client. However, I assume this cannot be done from a ServerResource since it would require me to actually return a Representation (and subsequently I would abort reading from the input stream).
What is the recommended approach in this scenario? Use a raw Restlet and deal with it in the handle-method? How have people solved this in general?
Obviously, it can easily be accomplished using a "raw" HttpServlet but I would love to be able to use restlet across the board.