public static class WagonHelper.WagonFetcher extends Object implements ResourceFetcher
| Constructor and Description |
|---|
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 WagonFetcher(Wagon wagon, TransferListener listener, AuthenticationInfo authenticationInfo, ProxyInfo proxyInfo)
public void connect(String id, String url) throws IOException
ResourceFetcherconnect in interface ResourceFetcherIOExceptionpublic void disconnect()
throws IOException
ResourceFetcherdisconnect in interface ResourceFetcherIOExceptionpublic InputStream retrieve(String name) throws IOException, FileNotFoundException
ResourceFetcherretrieve in interface ResourceFetchername - a name of resource to retrieveIOExceptionFileNotFoundExceptionpublic void retrieve(String name, File targetFile) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.