Package org.apache.maven.index.updater
Interface ResourceFetcher
-
- All Known Implementing Classes:
DefaultIndexUpdater.FileFetcher
,DefaultIndexUpdater.LocalIndexCacheFetcher
,WagonHelper.WagonFetcher
public interface ResourceFetcher
An interface defining resource downloading contract
-
-
Method Summary
All Methods Instance Methods Abstract 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 sessionjava.io.InputStream
retrieve(java.lang.String name)
Retrieves resource as InputStream
-
-
-
Method Detail
-
connect
void connect(java.lang.String id, java.lang.String url) throws java.io.IOException
Connect and start transfer session- Throws:
java.io.IOException
-
disconnect
void disconnect() throws java.io.IOException
Disconnect and complete transfer session- Throws:
java.io.IOException
-
retrieve
java.io.InputStream retrieve(java.lang.String name) throws java.io.IOException, java.io.FileNotFoundException
Retrieves resource as InputStream- Parameters:
name
- a name of resource to retrieve- Throws:
java.io.IOException
java.io.FileNotFoundException
-
-