hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: Copy or clone a HttpMethod
Date Fri, 07 Mar 2003 10:51:55 GMT
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?


-----Original Message-----
From: mathis@vtg.at [mailto:mathis@vtg.at]
Sent: Freitag, 7. März 2003 11:45
To: commons-httpclient-dev@jakarta.apache.org
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


-----Ursprüngliche Nachricht-----
Von: Kalnichevski, Oleg [mailto:oleg.kalnichevski@bearingpoint.com]
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)


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

View raw message