Hi Jon, The concept of Representation transparently allows you to do this. You just have to set the Response's entity to a streamable representation, like an OuputRepresentation subclass (which will require you to override write(OutputStream)).
For an example, you can look at XmlRepresentation which is a subclass of OutputRepresentation. Best regards, Jerome > -----Message d'origine----- > De : news [mailto:[EMAIL PROTECTED] De la part de Jon Lachelt > Envoyé : vendredi 6 juillet 2007 23:15 > À : [email protected] > Objet : Responding to request with a large representation > > > I have a case where I will be generating a very large (larger > than I want to > put into a buffer) representation as a response to a request. > I'd like to > generate it by writing to a stream. > > How do I hook that up in my Restlet.handle() method? > > To be more specific what kind of object do I instantiate and > then pass to the > Response.setEntity(), that I can then start writing as I > generate the new > representation. > > Is there an example I can look at? > > Thanks, > Jon

