I'm not exactly sure what you're asking.

The command-line client uses a WebdavResource object for all its
communication with Slide.

WebdavResource uses an HttpClient object for all its communication with
Slide.

HttpClient communicates with Slide using HTTP.

You're free to use any of the three. If you want to use the
command-line client in code you'll have to communicate with it using
Streams to pass data and then parse the response.

If you use an HttpClient directly you're going to have to parse all the
responses yourself.

Your best bet is to use WebdavResource. Take a look at the code in
Client.java for example of how to use the API for common tasks.

-James

>>> [EMAIL PROTECTED] 7/15/2004 3:24:23 AM >>>
as I know, the webdave is an extension of http, right? so I wonder why

cannot I just use webdav client api instead http to download and upload
file 
from slide?



>From: "James Mason" <[EMAIL PROTECTED]>
>Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: how to use response to send outputstream back to client
>Date: Wed, 14 Jul 2004 10:14:00 -0700
>
>Use WebdavResource.getMethodData() to get an InputStream for the
file.
>Use response.getOutputStream() to get an OutputStream to which you
can
>write the InputStream. Be sure to set appropriate headers on the
>response to indicate file type/length/etc.
>
>-James
>
> >>> [EMAIL PROTECTED] 7/14/2004 9:50:13 AM >>>
>I use the inputstream from request to upload a file from client to
>slide
>server through web page. but how could i send back the file back to
>client
>when i get file from slide server without writing temp file in web
>server?
>how could i set response in servlet?
>thanks a lot.
>haipeng
>
>_________________________________________________________________
>Get tips for maintaining your PC, notebook accessories and reviews in
>Technology 101. http://special.msn.com/tech/technology101.armx 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] 
>For additional commands, e-mail: [EMAIL PROTECTED] 
>

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus 


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


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

Reply via email to