imario 2004/10/11 12:31:29
Modified: vfs/src/java/org/apache/commons/vfs/provider/webdav
WebdavClientFactory.java
Log:
workaround to handle webdav server where webdav resources do not start at the root
url - e.g. if you configure only a context as webdav resource.
Revision Changes Path
1.2 +9 -3
jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebdavClientFactory.java
Index: WebdavClientFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebdavClientFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WebdavClientFactory.java 27 May 2004 19:09:37 -0000 1.1
+++ WebdavClientFactory.java 11 Oct 2004 19:31:29 -0000 1.2
@@ -50,7 +50,10 @@
port,
"/");
- WebdavResource resource = null;
+ // WebdavResource resource = null;
+ WebdavResource resource = new WebdavResource()
+ {
+ };
if (fileSystemOptions != null)
{
@@ -59,16 +62,19 @@
if (proxyHost != null && proxyPort > 0)
{
- resource = new WebdavResource(url, proxyHost, proxyPort);
+ // resource = new WebdavResource(url, proxyHost, proxyPort);
resource.setProxy(proxyHost, proxyPort);
}
}
+ /*
if (resource == null)
{
resource = new WebdavResource(url);
}
resource.setProperties(WebdavResource.NOACTION, 1);
+ */
+ resource.setHttpURL(url, WebdavResource.NOACTION, 1);
client = resource.retrieveSessionInstance();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]