Package org.apache.webdav.ant

Examples of org.apache.webdav.ant.CollectionScanner


      }
   }
  
   protected void downloadFileset(WebdavFileSet fileSet) throws IOException
   {
      CollectionScanner scanner =
          fileSet.getCollectionScanner(getProject(), getHttpClient(), getUrl());
      HttpURL baseUrl = scanner.getBaseURL();
     
      String[] files = scanner.getIncludedFiles();
      for (int i = 0; i < files.length; i++) {
         HttpURL url = Utils.createHttpURL(baseUrl, files[i]);
         downloadFile(url, files[i], scanner);
      }
   }
View Full Code Here


   }
  
   protected void proppatch(WebdavFileSet fileSet)
      throws IOException, HttpException
   {
      CollectionScanner scanner =
         fileSet.getCollectionScanner(getProject(), getHttpClient(), getUrl());
      HttpURL baseUrl = scanner.getBaseURL();
    
      String[] files = scanner.getIncludedFiles();
      for (int i = 0; i < files.length; i++) {
         HttpURL url = Utils.createHttpURL(baseUrl, files[i]);
         proppatch(url, files[i]);
      }
      String[] colls = scanner.getIncludedDirectories();
      for (int i = 0; i < colls.length; i++) {
         HttpURL url = Utils.createHttpURL(baseUrl, colls[i]);
         proppatch(url, colls[i]);
      }
   }
View Full Code Here

   }
  
   private void deleteFileset(WebdavFileSet fileSet)
      throws IOException, HttpException
   {
      CollectionScanner scanner =
         fileSet.getCollectionScanner(getProject(), getHttpClient(), getUrl());
      HttpURL baseUrl = scanner.getBaseURL();
    
      String[] files = scanner.getIncludedFiles();
      for (int i = 0; i < files.length; i++) {
         HttpURL url = Utils.createHttpURL(baseUrl, files[i]);
         delete(url, files[i]);
      }
      String[] colls = scanner.getIncludedDirectories();
      for (int i = 0; i < colls.length; i++) {
         HttpURL url = Utils.createHttpURL(baseUrl, colls[i]);
         delete(url, colls[i]);
      }
   }
View Full Code Here

    /**
     * Returns the collection scanner needed to access the resources to get.
     */
    protected Scanner getScanner(URL baseURL) throws ScanException {
        CollectionScanner scanner = new CollectionScanner();
        scanner.setBaseURL(baseURL);
        scanner.setIncludes(makeArray(includeList));
        scanner.setExcludes(makeArray(excludeList));
        scanner.setHttpClient(client);
        if (useDefaultExcludes) {
            scanner.addDefaultExcludes();
        }
        scanner.scan();
        return scanner;
    }
View Full Code Here

    /**
     * Returns the collection scanner needed to access the resources to get.
     */
    protected Scanner getScanner(URL baseURL) throws ScanException {
        CollectionScanner scanner = new CollectionScanner();
        scanner.setBaseURL(baseURL);
        scanner.setIncludes(makeArray(includeList));
        scanner.setExcludes(makeArray(excludeList));
        scanner.setHttpClient(client);
        if (useDefaultExcludes) {
            scanner.addDefaultExcludes();
        }
        scanner.scan();
        return scanner;
    }
View Full Code Here

TOP

Related Classes of org.apache.webdav.ant.CollectionScanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.