public static class WagonHelper.WagonFetcher extends java.lang.Object implements ResourceFetcher
| Modifier and Type | Field and 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 and 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.lang.String id,
java.lang.String url)
Connect and start transfer session
|
void |
disconnect()
Disconnect and complete transfer session
|
private void |
logError(java.lang.String msg,
java.lang.Exception ex) |
java.io.InputStream |
retrieve(java.lang.String name)
Retrieves resource as InputStream
|
void |
retrieve(java.lang.String name,
java.io.File targetFile) |
private final org.apache.maven.wagon.events.TransferListener listener
private final org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo
private final org.apache.maven.wagon.proxy.ProxyInfo proxyInfo
private final org.apache.maven.wagon.Wagon wagon
public 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)
public void connect(java.lang.String id,
java.lang.String url)
throws java.io.IOException
ResourceFetcherconnect in interface ResourceFetcherjava.io.IOExceptionpublic void disconnect()
throws java.io.IOException
ResourceFetcherdisconnect in interface ResourceFetcherjava.io.IOExceptionpublic java.io.InputStream retrieve(java.lang.String name)
throws java.io.IOException,
java.io.FileNotFoundException
ResourceFetcherretrieve in interface ResourceFetchername - a name of resource to retrievejava.io.IOExceptionjava.io.FileNotFoundExceptionpublic void retrieve(java.lang.String name,
java.io.File targetFile)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOExceptionjava.io.FileNotFoundExceptionprivate void logError(java.lang.String msg,
java.lang.Exception ex)