public static class WagonHelper.WagonFetcher extends Object implements ResourceFetcher
Constructor and Description |
---|
WagonHelper.WagonFetcher(Wagon wagon,
TransferListener listener,
AuthenticationInfo authenticationInfo,
ProxyInfo proxyInfo) |
Modifier and Type | Method and Description |
---|---|
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) |
public WagonHelper.WagonFetcher(Wagon wagon, TransferListener listener, AuthenticationInfo authenticationInfo, ProxyInfo proxyInfo)
public void connect(String id, String url) throws IOException
ResourceFetcher
connect
in interface ResourceFetcher
IOException
public void disconnect() throws IOException
ResourceFetcher
disconnect
in interface ResourceFetcher
IOException
public InputStream retrieve(String name) throws IOException, FileNotFoundException
ResourceFetcher
retrieve
in interface ResourceFetcher
name
- a name of resource to retrieveIOException
FileNotFoundException
public void retrieve(String name, File targetFile) throws IOException, FileNotFoundException
IOException
FileNotFoundException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.