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
ResourceFetcher
connect
in interface ResourceFetcher
java.io.IOException
public void disconnect() throws java.io.IOException
ResourceFetcher
disconnect
in interface ResourceFetcher
java.io.IOException
public java.io.InputStream retrieve(java.lang.String name) throws java.io.IOException, java.io.FileNotFoundException
ResourceFetcher
retrieve
in interface ResourceFetcher
name
- a name of resource to retrievejava.io.IOException
java.io.FileNotFoundException
public void retrieve(java.lang.String name, java.io.File targetFile) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
private void logError(java.lang.String msg, java.lang.Exception ex)