From: Daniel Pitts on 21 Jan 2010 17:09 Lothar Kimmeringer wrote: > Arne Vajh�j wrote: > >> On 20-01-2010 14:53, Lothar Kimmeringer wrote: >> >>> The last time I checked, GetMethod and PostMethod were two >>> classes sharing a lot of methods but not a common superclass. >> Sure? >> >> HttpClient 2.0.2 has a common super class. > > As I said: "The last time I checked" It's been quite a while > now, deciding to use HttpUrlConnection instead for implementing > my AS2-Connector. The code I posted was taken from another > application developed by a coworker. Since my decision I never > came back to the point of reconsideration because all the > features of HttpClient I in general don't need. > > > Regards, Lothar If the code you posted came from a coworker, might it be possible that they didn't understand the concept of polymorphic types, and *could* have used a common base class? -- Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
From: Arne Vajhøj on 21 Jan 2010 19:43 On 21-01-2010 08:15, Roedy Green wrote: > On Wed, 20 Jan 2010 20:21:59 -0500, Arne Vajh�j<arne(a)vajhoej.dk> > wrote, quoted or indirectly quoted someone who said : >> Sounds more like a very slow DNS server and your immediate DNS server >> having the name cached the second time. > > Should not the GET timeout if the DNS server takes 4 minutes? I don't know. It is configurable. Arne
From: Arne Vajhøj on 21 Jan 2010 19:44 On 21-01-2010 12:16, Lothar Kimmeringer wrote: > Arne Vajh�j wrote: >> On 20-01-2010 14:53, Lothar Kimmeringer wrote: >> >>> The last time I checked, GetMethod and PostMethod were two >>> classes sharing a lot of methods but not a common superclass. >> >> Sure? >> >> HttpClient 2.0.2 has a common super class. > > As I said: "The last time I checked" It's been quite a while > now, deciding to use HttpUrlConnection instead for implementing > my AS2-Connector. The code I posted was taken from another > application developed by a coworker. Since my decision I never > came back to the point of reconsideration because all the > features of HttpClient I in general don't need. The API is simpler than (Http)URLConnection, so even if you don't need all the features, then it can be beneficial to use. Arne
From: Arne Vajhøj on 21 Jan 2010 19:47 On 21-01-2010 01:12, Roedy Green wrote: > On Wed, 20 Jan 2010 20:23:35 -0500, Arne Vajh�j<arne(a)vajhoej.dk> > wrote, quoted or indirectly quoted someone who said : >> Given that the code was explicit stated to be Apache, then >> complaining to SUN would not make much sense. > > He was not explicit. If you know that GetMethod and PostMethod are > unique to Apache, you could infer that. But Lothar did not state it > explicitly. The audience is wider than those who post. It always > helps to make things abundantly clear. The post Lothar quoted in his post said: and usually go with apache commons HttpClient That is very explicit. Arne
From: Roedy Green on 22 Jan 2010 22:55
On Thu, 21 Jan 2010 10:19:09 -0500, Lew <noone(a)lewscanon.com> wrote, quoted or indirectly quoted someone who said : > >Lothar wasn't explicit, but Arne didn't say it was Lothar. Daniel was >explicit, in the post to which Lothar responded. This reminds me of the standard response I get when I write to an author words to this effect. On page 99 of your manual, you say "xxxx". This could be interpreted to mean either "yyyy" or "zzzz". I suggest rewording it as "aaaaa" to make it clear that you meant "zzzz". They respond I meant "zzzz". This is perfectly clear to any (German-speaking) person. If you, as a rank novice, have further trouble understanding my program, please don't hesitate to ask. -- Roedy Green Canadian Mind Products http://mindprod.com G�D is REAL untess declared INTEGER. ~ Anonymous In F�RTRAN, variables beginning I..N are implicitly INTEGER, the rest REAL. |