hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-525) Part.isRepeatable() should be abstract
Date Thu, 07 Feb 2008 20:29:09 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Roland Weber updated HTTPCLIENT-525:
------------------------------------

    Component/s:     (was: HttpClient)
                 HttpMime

I assume that this is no longer relevant for the mime4j based entity.

> Part.isRepeatable() should be abstract
> --------------------------------------
>
>                 Key: HTTPCLIENT-525
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-525
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpMime
>    Affects Versions: 3.0 RC4
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Loïc Péron
>             Fix For: 4.0 Final
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message