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
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.wagon.authentication.AuthenticationInfo
authenticationInfo
private org.apache.maven.wagon.events.TransferListener
listener
private org.apache.maven.wagon.proxy.ProxyInfo
proxyInfo
private org.apache.maven.wagon.Wagon
wagon
-
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 void
connect(java.lang.String id, java.lang.String url)
Connect and start transfer sessionvoid
disconnect()
Disconnect and complete transfer sessionprivate void
logError(java.lang.String msg, java.lang.Exception ex)
java.io.InputStream
retrieve(java.lang.String name)
Retrieves resource as InputStreamvoid
retrieve(java.lang.String name, java.io.File targetFile)
-
-
-
Field Detail
-
listener
private final org.apache.maven.wagon.events.TransferListener listener
-
authenticationInfo
private final org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo
-
proxyInfo
private final org.apache.maven.wagon.proxy.ProxyInfo proxyInfo
-
wagon
private final org.apache.maven.wagon.Wagon wagon
-
-
Method Detail
-
connect
public void connect(java.lang.String id, java.lang.String url) throws java.io.IOException
Description copied from interface:ResourceFetcher
Connect and start transfer session- Specified by:
connect
in interfaceResourceFetcher
- Throws:
java.io.IOException
-
disconnect
public void disconnect() throws java.io.IOException
Description copied from interface:ResourceFetcher
Disconnect and complete transfer session- Specified by:
disconnect
in interfaceResourceFetcher
- Throws:
java.io.IOException
-
retrieve
public java.io.InputStream retrieve(java.lang.String name) throws java.io.IOException, java.io.FileNotFoundException
Description copied from interface:ResourceFetcher
Retrieves resource as InputStream- Specified by:
retrieve
in interfaceResourceFetcher
- Parameters:
name
- a name of resource to retrieve- Throws:
java.io.IOException
java.io.FileNotFoundException
-
retrieve
public void retrieve(java.lang.String name, java.io.File targetFile) throws java.io.IOException, java.io.FileNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
-
logError
private void logError(java.lang.String msg, java.lang.Exception ex)
-
-