Class HttpFetcher
java.lang.Object
ubic.gemma.core.loader.util.fetcher.AbstractFetcher
ubic.gemma.core.loader.util.fetcher.HttpFetcher
- All Implemented Interfaces:
Fetcher
A generic class for fetching files via HTTP and writing them to a local file system.
- Author:
- pavlidis
-
Field Summary
Fields inherited from class ubic.gemma.core.loader.util.fetcher.AbstractFetcher
allowUseExisting, force, INFO_UPDATE_INTERVAL, localBasePath, log, remoteBaseDir -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFetch files according to the identifier provided.protected StringformLocalFilePath(String identifier, File newDir) protected StringformRemoteFilePath(String identifier) protected voidprotected Collection<File> Methods inherited from class ubic.gemma.core.loader.util.fetcher.AbstractFetcher
fetchedFile, fetchedFile, getExistingFile, getLocalBasePath, isForce, mkdir, mkdir, setAllowUseExisting, setForce, waitForDownload
-
Constructor Details
-
HttpFetcher
public HttpFetcher()
-
-
Method Details
-
fetch
Description copied from interface:FetcherFetch files according to the identifier provided.- Parameters:
url- identifier- Returns:
- local files
-
fetch
-
formLocalFilePath
- Specified by:
formLocalFilePathin classAbstractFetcher
-
formRemoteFilePath
- Specified by:
formRemoteFilePathin classAbstractFetcher
-
initConfig
protected void initConfig()- Specified by:
initConfigin classAbstractFetcher
-
listFiles
- Throws:
IOException
-