org.apache.maven.index.updater
Class TrackingFetcher

java.lang.Object
  extended by org.apache.maven.index.updater.DefaultIndexUpdater.FileFetcher
      extended by org.apache.maven.index.updater.TrackingFetcher
All Implemented Interfaces:
ResourceFetcher

public class TrackingFetcher
extends DefaultIndexUpdater.FileFetcher

ResourceFetcher that keeps track of all requested remote resources.

Author:
igor

Constructor Summary
TrackingFetcher(File basedir)
           
 
Method Summary
 List<String> getRetrievedResources()
           
 InputStream retrieve(String name)
           
 void retrieve(String name, File targetFile)
           
 
Methods inherited from class org.apache.maven.index.updater.DefaultIndexUpdater.FileFetcher
connect, disconnect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackingFetcher

public TrackingFetcher(File basedir)
Method Detail

retrieve

public InputStream retrieve(String name)
                     throws IOException,
                            FileNotFoundException
Specified by:
retrieve in interface ResourceFetcher
Overrides:
retrieve in class DefaultIndexUpdater.FileFetcher
Throws:
IOException
FileNotFoundException

retrieve

public void retrieve(String name,
                     File targetFile)
              throws IOException,
                     FileNotFoundException
Overrides:
retrieve in class DefaultIndexUpdater.FileFetcher
Throws:
IOException
FileNotFoundException

getRetrievedResources

public List<String> getRetrievedResources()


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.