I see. Unfortunately I personally can't think of an elegant way to clone HTTP methods. 
If you decide to write HTTP method cloning routine, would you mind contributing it as 
a utility class for HttpClient's yet to be founded contribution package?

Oleg

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Freitag, 7. M�rz 2003 11:45
To: [EMAIL PROTECTED]
Subject: AW: Copy or clone a HttpMethod 


I want to use a method twice with all headers, paths, ... set. recycle()
would delete all these settings.
As I can not execute a method twice I want to clone/copy it before I execute
it.

Thomas

-----Urspr�ngliche Nachricht-----
Von: Kalnichevski, Oleg [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 7. M�rz 2003 11:34
An: Commons HttpClient Project
Betreff: RE: Copy or clone a HttpMethod 


Hi Thomas

Some clarifications needed: do you need an exact copy of an Http method or
you just want to be able to reuse the same object twice? 

The problem is that (in my opinion) HttpMethod should be split into
HttpRequest/HttpResponse pair. That would allow HttpRequest objects to be
reused multiple time without having to go into trouble of 'recycling'
objects. However, such a radical design change will not happen any time soon
(if approved at all)

Oleg

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


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

Reply via email to