thank you very much
2009-11-18 guozhen07 发件人: Thierry Boileau 发送时间: 2009-11-17 16:05:27 收件人: [email protected] 抄送: 主题: Re: how to make the entity to be read many a time Hello Neel, actually, the default request's representation is an InputRepresentation which reads the entity from a stream and does not persist it in memory. You can still get the full entity text and store it as a String object with the Representation#getText(), and even instantiate a StringRepresentation. Other representations digest the stream and populate a set of objects, such as DomRepresentation (for XML), Feed, Entry, etc (Atom), etc. Best regards, Thierry Boileau > In Restlet, the Entity in the request only can be read one time by > default. In the development , I usually need to print the entity > context for debugging before the entity is handled. So how to config > or code to make the entity can be read many a time. > > thank you very much !!! > > 2009-11-17 > ------------------------------------------------------------------------ > guozhen07 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2418813 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2419331

