Very cool, Jerome, I'd almost forgotten about this one. That was how I originally hoped you could make it work.
----- Original Message ----- From: "Jerome Louvel" <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, September 17, 2007 4:16:50 PM (GMT-0500) America/New_York Subject: RE: Reusable representations Hi all, The Message's toString(), getEntityAsDom(), getEntityAsSax() and getEntityAsForm() are provided for a limited set of core Representations. Basically those available in the org.restlet.resource package, not requiring any extension JAR beside the JDK. I agree that it is convenient to be able to call getEntityAsForm() several times without trouble. I've changed SVN trunk to now return the same representation instance when this method is called several times, the same for getEntityAsSax() and getEntityAsDom(). For other cases, it is always possible to use the request attributes map to store your converted entities, for example as JaxbRepresentations. Best regards, Jerome

