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 Amr Elssamadisy <sa...@laser.cs.umass.edu> on 2004/04/22 23:38:23 UTC

Complete newbie

Hi,

Wanted to ask if there are any good examples/tutorials for using slide.  
I am especially interested in file and directory manipulation as opposed 
to security....  (i.e. use of WebdavFile and WebdavResource etc...)

I've checked the archives and couldn't find anything that looked promising.

Thanks in advance - Amr

-- 
Amr Elssamadisy

Developer,Researcher,Student
(In no particular order...)

tel: (413) 207-1225
email: amr@elssamadisy.com



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Complete newbie

Posted by Simone Gianni <s....@thebug.it>.
Hi Amr,
actually 1.0.x is two years old, and even if it's the last stable release 
it is really a small subset of the 2.0 functionality and performance. 
Anyway, the command line client is present also in the 1.0.x .... and is 
even easier to read since it's by far less complicated (since has less 
commands) than the 2.0 counterpart. Unfortunately all the code is in one 
big method called "processCommands", and you have to locate the part that 
you need browsing it.

The file is Slide.java and is in the 
src/webdav/client/src/org/apache/webdav/cmd/ directory of the source 
distribution.


Simone


At 19.41 23/04/2004, you wrote:
>Hi Simone,
>    Thanks so much for the input.  I just got the source and it seems the 
> files you are describing here are no longer part of the distribution 
> (both Client.java and WebdavSystemView.java).  The download I got was 
> version 1.016 of slide.  If you don't mind can you just attach those two 
> files in an email and send them to me personally?
>
>Thanks so much for you help!
>Amr


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Complete newbie

Posted by Amr Elssamadisy <sa...@laser.cs.umass.edu>.
Hi Simone,
    Thanks so much for the input.  I just got the source and it seems 
the files you are describing here are no longer part of the distribution 
(both Client.java and WebdavSystemView.java).  The download I got was 
version 1.016 of slide.  If you don't mind can you just attach those two 
files in an email and send them to me personally?

Thanks so much for you help!
Amr

Simone Gianni wrote:

> Hi Amr,
> In my opinion (and i could be wrong), the source code of the command 
> line client is the best source of examples and code snippets. The 
> command parsing part is quite complex to understand at first sight, 
> but all the real dav logic is in the methods of Client.java (in 
> src/webdav/client/src/org/apache/webdav/cmd/). There you can find 
> methods like "mkcol" to create a directory (actually a collection in 
> WebDav terminology), "get" to read the content of a file, "put" to 
> write the content of a file etc...
>
> The command line client uses only WebdavResource, if you are 
> interested in WebdavFile (which i think is easier to use if you are 
> interested only in file and directory creation and browsing) there are 
> some good examples in the UI client: in the WebdavSystemView.java (in 
> src/webdav/client/src/org/apache/webdav/ui/) there are methods like 
> "createFileObject" and "createNewFolder" which are based on WebdavFile.
>
> Obviously this methods are just a path to follow implementing your own 
> for your own needs. Anyway, WebdavFile is as easy to use as the common 
> java.io.File class, and is fully compatible with it.
>
> Hope it helps!
>
> Ciao,
> Simone Gianni
>
>
> At 23.38 22/04/2004, you wrote:
>
>> Hi,
>>
>> Wanted to ask if there are any good examples/tutorials for using slide.
>> I am especially interested in file and directory manipulation as 
>> opposed to security....  (i.e. use of WebdavFile and WebdavResource 
>> etc...)
>>
>> I've checked the archives and couldn't find anything that looked 
>> promising.
>>
>> Thanks in advance - Amr
>>
>> -- 
>> Amr Elssamadisy
>>
>> Developer,Researcher,Student
>> (In no particular order...)
>>
>> tel: (413) 207-1225
>> email: amr@elssamadisy.com
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org


-- 
Amr Elssamadisy

Developer,Researcher,Student
(In no particular order...)

tel: (413) 207-1225
email: amr@elssamadisy.com



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Complete newbie

Posted by Simone Gianni <s....@thebug.it>.
Hi Amr,
In my opinion (and i could be wrong), the source code of the command line 
client is the best source of examples and code snippets. The command 
parsing part is quite complex to understand at first sight, but all the 
real dav logic is in the methods of Client.java (in 
src/webdav/client/src/org/apache/webdav/cmd/). There you can find methods 
like "mkcol" to create a directory (actually a collection in WebDav 
terminology), "get" to read the content of a file, "put" to write the 
content of a file etc...

The command line client uses only WebdavResource, if you are interested in 
WebdavFile (which i think is easier to use if you are interested only in 
file and directory creation and browsing) there are some good examples in 
the UI client: in the WebdavSystemView.java (in 
src/webdav/client/src/org/apache/webdav/ui/) there are methods like 
"createFileObject" and "createNewFolder" which are based on WebdavFile.

Obviously this methods are just a path to follow implementing your own for 
your own needs. Anyway, WebdavFile is as easy to use as the common 
java.io.File class, and is fully compatible with it.

Hope it helps!

Ciao,
Simone Gianni


At 23.38 22/04/2004, you wrote:
>Hi,
>
>Wanted to ask if there are any good examples/tutorials for using slide.
>I am especially interested in file and directory manipulation as opposed 
>to security....  (i.e. use of WebdavFile and WebdavResource etc...)
>
>I've checked the archives and couldn't find anything that looked promising.
>
>Thanks in advance - Amr
>
>--
>Amr Elssamadisy
>
>Developer,Researcher,Student
>(In no particular order...)
>
>tel: (413) 207-1225
>email: amr@elssamadisy.com
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org