You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Pill, Juergen" <Ju...@softwareag.com> on 2001/05/03 17:59:29 UTC

webdav client methods

Hello,

I want to suggest to repeat the basic http method in the webdav package as
empty classes, just inheriting from the basic http class.

If a client wants to use the complete set of webdav methods, it needs to
import the webdav methods with * and import all the specific http methods
(which are not repeated in webdav) fully qualified with the httpclient
package name.

see example:


// Slide
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.PutMethod;    // can be omitted
if available in webdav
import org.apache.commons.httpclient.methods.HeadMethod;   // can be omitted
if available in webdav
import org.apache.commons.httpclient.methods.PostMethod;   // can be omitted
if available in webdav
import org.apache.commons.httpclient.methods.GetMethod;    // can be omitted
if available in webdav
import org.apache.webdav.lib.*;
import org.apache.webdav.lib.methods.*;
import org.apache.util.WebdavStatus;



Any objections?

best regards

Juergen Pill


Re: webdav client methods

Posted by Remy Maucherat <re...@apache.org>.
> Hello,
>
> I want to suggest to repeat the basic http method in the webdav package as
> empty classes, just inheriting from the basic http class.
>
> If a client wants to use the complete set of webdav methods, it needs to
> import the webdav methods with * and import all the specific http methods
> (which are not repeated in webdav) fully qualified with the httpclient
> package name.
>
> see example:
>
>
> // Slide
> import org.apache.commons.httpclient.*;
> import org.apache.commons.httpclient.methods.PutMethod;    // can be
omitted
> if available in webdav
> import org.apache.commons.httpclient.methods.HeadMethod;   // can be
omitted
> if available in webdav
> import org.apache.commons.httpclient.methods.PostMethod;   // can be
omitted
> if available in webdav
> import org.apache.commons.httpclient.methods.GetMethod;    // can be
omitted
> if available in webdav
> import org.apache.webdav.lib.*;
> import org.apache.webdav.lib.methods.*;
> import org.apache.util.WebdavStatus;
>
>
>
> Any objections?

No, it's ok.
I was considering providing empty implementations for GET, PUT, HEAD, POST,
actually. I can't remember why I didn't do it. So I'm +1.

Remy