You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Matt Chotin <ch...@iharvest.com> on 2001/05/18 20:01:11 UTC

WebdavResource putMethod

Hi,

I'm using the webdav client part of Slide and want to call the putMethod on
the WebdavResource, but I already have an InputStream (or in some cases a
byte[]).  I know that the PutMethod already has methods to support passing
in an InputStream or byte[], but they're not exposed through the resource.
Besides creating a temp file, is there any easy way to send my data across
using the existing API?

This leads to a larger question of how to access some of the more specific
methods of a HtppMethod when not explicitly exposed by the WebdavResource?
Is there something that I'm not seeing or has this been discussed for future
development?

Thanks!

Matt

Re: WebdavResource putMethod

Posted by Remy Maucherat <re...@apache.org>.
> Hi,
>
> I'm using the webdav client part of Slide and want to call the putMethod
on
> the WebdavResource, but I already have an InputStream (or in some cases a
> byte[]).  I know that the PutMethod already has methods to support passing
> in an InputStream or byte[], but they're not exposed through the resource.
> Besides creating a temp file, is there any easy way to send my data across
> using the existing API?
>
> This leads to a larger question of how to access some of the more specific
> methods of a HtppMethod when not explicitly exposed by the WebdavResource?
> Is there something that I'm not seeing or has this been discussed for
future
> development?

WebdavResource doesn't expose those methods yet, but I'm sure Sung-Gu could
fix that.
Perhaps we should also consider a way to retrieve the HttpClient used.

Remy