commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Klute <rainer.kl...@epost.de>
Subject Re: HttpClient Post
Date Wed, 24 Apr 2002 12:46:32 GMT
"Waldhoff, Rodney" <rwaldhof@us.britannica.com> wrote:
>class MyPostMethod extends PutMethod {
>  public String getName() { return "POST"; }
>}
>
>does what you're looking for, I think.

Oh yes! This seems to be the most obvious, straight-forward and 
object-oriented solution. :-)

Seriously, HttpMethodBase should implement sending and receiving 
a body, because this is a general HTTP feature. Subclasses that 
don't support request or response bodies should overwrite the 
methods accordingly and throw an exception.

Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH i. Gr.
  Dipl.-Inform.
  Rainer Klute             E-Mail:  klute@rainer-klute.de
  K├Ârner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423


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


Mime
View raw message