Something similar to SAX InputSource would be quite handy I think. http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html
However, I'd wait with this feature until 4.0 Oleg -----Original Message----- From: Ortwin Glück [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 10:47 To: Commons HttpClient Project Subject: [RFE] provide request entities in a more abstract way Providing only an InputStream as a request body is not enough. We can not automatically repeat such a request since we are unable to reset the input stream without buffering it. I suggest we introduce an abstraction for the source of request entities such as: interface RequestEntity { /** * Provides an input stream of the request entity. The method may be called * more than once and must provide a virgin stream upon each call. */ InputStream getAsStream(); } We can then provide convenience classes that implement this interface, such as: * class StringRequestEntity implements RequestEntity * class FileRequestEntity implements RequestEntity etc. What does everybody think about this? Odi -- _________________________________________________________________ NOSE applied intelligence ag ortwin glück [www] http://www.nose.ch software engineer [email] [EMAIL PROTECTED] hardturmstrasse 171 [pgp id] 0x81CF3416 8005 zürich [office] +41-1-277 57 35 switzerland [fax] +41-1-277 57 12 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *************************************************************************************************** The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]