Package org.apache.maven.index.updater
Class WagonHelper.WagonFetcher
- java.lang.Object
-
- org.apache.maven.index.updater.WagonHelper.WagonFetcher
-
- All Implemented Interfaces:
ResourceFetcher
- Enclosing class:
- WagonHelper
public static class WagonHelper.WagonFetcher extends java.lang.Object implements ResourceFetcher
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(java.lang.String id, java.lang.String url)Connect and start transfer sessionvoiddisconnect()Disconnect and complete transfer sessionjava.io.InputStreamretrieve(java.lang.String name)Retrieves resource as InputStreamvoidretrieve(java.lang.String name, java.io.File targetFile)
-
-
-
Method Detail
-
connect
public void connect(java.lang.String id, java.lang.String url) throws java.io.IOExceptionDescription copied from interface:ResourceFetcherConnect and start transfer session- Specified by:
connectin interfaceResourceFetcher- Throws:
java.io.IOException
-
disconnect
public void disconnect() throws java.io.IOExceptionDescription copied from interface:ResourceFetcherDisconnect and complete transfer session- Specified by:
disconnectin interfaceResourceFetcher- Throws:
java.io.IOException
-
retrieve
public java.io.InputStream retrieve(java.lang.String name) throws java.io.IOException, java.io.FileNotFoundExceptionDescription copied from interface:ResourceFetcherRetrieves resource as InputStream- Specified by:
retrievein interfaceResourceFetcher- Parameters:
name- a name of resource to retrieve- Throws:
java.io.IOExceptionjava.io.FileNotFoundException
-
retrieve
public void retrieve(java.lang.String name, java.io.File targetFile) throws java.io.IOException, java.io.FileNotFoundException- Throws:
java.io.IOExceptionjava.io.FileNotFoundException
-
-