DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37445>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37445

           Summary: Part.isRepeatable() should be abstract
           Product: HttpClient
           Version: 3.0 RC4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Part.isRepeatable() indicates if Part.sendData may be call multiple times
reliably. Part.sendData() is abstract but Part.isRepeatable is not, always
returning true.

Part.isRepeatable should be abstract and implemented in the same class as
Part.sendData(). StringPart would always return true, FilePart would delegate to
PartSource, and FilePartSource and ByteArrayPartSource would also return true.

This would allow a non-repeatable InputStream to be wrapped by a PartSource and
correctly indicating it is not repeatable.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to