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: [EMAIL PROTECTED]
-
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]