"Waldhoff, Rodney" <[EMAIL PROTECTED]> 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:  [EMAIL PROTECTED]
  Körner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423


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

Reply via email to