[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552202
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-719:
----------------------------------------------

Both HttpRequest and Cookie may be difficult to clone by means of standard 
Cloneable, #clone() partially due to the fact it is utterly broken. What we 
could do is to provide a Copyable interface that could be used to produce 
equivalent copies of complex compound objects. HTTP messages with streaming 
entities could buffer the content in order to make it copyable. 

Thoughts?

Oleg

> Clone support
> -------------
>
>                 Key: HTTPCLIENT-719
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-719
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient, HttpCookie
>            Reporter: David Byrne
>            Priority: Minor
>             Fix For: 4.0 Alpha 3
>
>
> 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. The main interfaces that I would like to 
> clone are HttpRequest and Cookie. I know that HttpRequest is technically part 
> of HttpCore, but the primary implementations of it are in HttpClient, so I 
> thought I would post it here. 
> 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