For "intended" usage patterns check the slide command line sample client. Other ways of using WebdavResource outside of what the command line client does, were probably not thought of carefully or haven't been tested.
Carlos
Garret Wilson wrote:
James,
James Mason wrote:
After you construct your WebdavResource you should be able to call headMethod() to see if the remote resource exists. I don't know if this is the best method, but it should work.
There are a 100 ways that would work, I'm sure---but how was WebdavResource *designed* to be used?
Why doesn't WebdavResource call headMethod() itself when I check its existence? Why does it try to gather properties when I create a WebdavResource instance? If it for some reason *has* to do a PROPFIND, why doesn't it determine the nonexistence and just set the existence flag to false?
As I mentioned to someone off the list: Imagine if creating a java.io.File for a non-existent file threw an IOException, and you had to try to open up an InputStream using low-level disk I/O just to see if you could create a java.io.File. (You could always create a java.io.File(boolean dontcheckdisk), but this would return incorrect information for java.io.File.exists().
Garret
--------------------------------------------------------------------- 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]