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 String
formLocalFilePath
(String identifier, File newDir) protected String
formRemoteFilePath
(String identifier) protected void
protected 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:Fetcher
Fetch files according to the identifier provided.- Parameters:
url
- identifier- Returns:
- local files
-
fetch
-
formLocalFilePath
- Specified by:
formLocalFilePath
in classAbstractFetcher
-
formRemoteFilePath
- Specified by:
formRemoteFilePath
in classAbstractFetcher
-
initConfig
protected void initConfig()- Specified by:
initConfig
in classAbstractFetcher
-
listFiles
- Throws:
IOException
-