commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav WebdavClientFactory.java
Date Mon, 11 Oct 2004 19:31:29 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message