org.apache.maven.index.updater
Class WagonHelper.WagonFetcher

java.lang.Object
  extended by org.apache.maven.index.updater.WagonHelper.WagonFetcher
All Implemented Interfaces:
ResourceFetcher
Enclosing class:
WagonHelper

public static class WagonHelper.WagonFetcher
extends Object
implements ResourceFetcher


Constructor Summary
WagonHelper.WagonFetcher(org.apache.maven.wagon.Wagon wagon, org.apache.maven.wagon.events.TransferListener listener, org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo, org.apache.maven.wagon.proxy.ProxyInfo proxyInfo)
           
 
Method Summary
 void connect(String id, String url)
          Connect and start transfer session
 void disconnect()
          Disconnect and complete transfer session
 InputStream retrieve(String name)
          Retrieves resource as InputStream
 void retrieve(String name, File targetFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WagonHelper.WagonFetcher

public WagonHelper.WagonFetcher(org.apache.maven.wagon.Wagon wagon,
                                org.apache.maven.wagon.events.TransferListener listener,
                                org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
                                org.apache.maven.wagon.proxy.ProxyInfo proxyInfo)
Method Detail

connect

public void connect(String id,
                    String url)
             throws IOException
Description copied from interface: ResourceFetcher
Connect and start transfer session

Specified by:
connect in interface ResourceFetcher
Throws:
IOException

disconnect

public void disconnect()
                throws IOException
Description copied from interface: ResourceFetcher
Disconnect and complete transfer session

Specified by:
disconnect in interface ResourceFetcher
Throws:
IOException

retrieve

public InputStream retrieve(String name)
                     throws IOException,
                            FileNotFoundException
Description copied from interface: ResourceFetcher
Retrieves resource as InputStream

Specified by:
retrieve in interface ResourceFetcher
Parameters:
name - a name of resource to retrieve
Throws:
IOException
FileNotFoundException

retrieve

public void retrieve(String name,
                     File targetFile)
              throws IOException,
                     FileNotFoundException
Throws:
IOException
FileNotFoundException


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