org.apache.maven.index.updater
Class TrackingFetcher
java.lang.Object
org.apache.maven.index.updater.DefaultIndexUpdater.FileFetcher
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrackingFetcher
public TrackingFetcher(File basedir)
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.