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

Oleg Kalnichevski resolved HTTPCORE-133.
----------------------------------------

    Resolution: Fixed

I added support for Cloneable, #clone() to all basic HTTP message elements and 
non-streaming (!) HTTP entities. I see no reasonable way of providing cloning 
support to HTTP messages firstly because Cloneable, #clone() combo is simply 
not suited for cloning complex compound objects and secondly because streaming 
entities cannot be cloned. 

David,
Please review.

Oleg  

> Clone support
> -------------
>
>                 Key: HTTPCORE-133
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-133
>             Project: HttpComponents Core
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 4.0-alpha6
>            Reporter: David Byrne
>            Priority: Minor
>             Fix For: 4.0-beta1
>
>
> It would be nice to have a clone method for some of the classes that don't 
> have getters & setters exposed for all of their fields. Where relevant, the 
> clone method could be in the interface, so that it doesn't matter which 
> implementing class is being used. If I want to clone an entity, I can clone a 
> entity and not figure out if it's UrlEncodedFormEntity, FileEntity, etc. So 
> far, HttpEntity is the only interface in HttpCore that I've wanted to clone. 
> I'm going to submit another ticket for client.
> Thanks,
> David Byrne

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to