Class HttpImporter
- java.lang.Object
-
- de.unirostock.sems.cbarchive.web.importer.Importer
-
- de.unirostock.sems.cbarchive.web.importer.HttpImporter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class HttpImporter extends Importer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.unirostock.sems.cbarchive.web.importer.Importer
Importer.DefaultNameTransformer, Importer.GitNameTransformer, Importer.ImportVCard
-
-
Field Summary
-
Fields inherited from class de.unirostock.sems.cbarchive.web.importer.Importer
IMPORT_GIT, IMPORT_HTTP, remoteUrl, tempFile, user
-
-
Constructor Summary
Constructors Constructor Description HttpImporter(ArchiveFromHttp archive, UserManager user)
HttpImporter(String remoteUrl)
HttpImporter(String remoteUrl, UserManager user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getLength()
String
getSuggestedName()
Suggest a name, in case the user does not provide oneHttpImporter
importRepo()
-
Methods inherited from class de.unirostock.sems.cbarchive.web.importer.Importer
createTempDir, getImporter, getImporter, getRemoteUrl, getTempFile, isImportable
-
-
-
-
Constructor Detail
-
HttpImporter
public HttpImporter(String remoteUrl)
-
HttpImporter
public HttpImporter(ArchiveFromHttp archive, UserManager user)
-
HttpImporter
public HttpImporter(String remoteUrl, UserManager user)
-
-
Method Detail
-
importRepo
public HttpImporter importRepo() throws ImporterException
- Specified by:
importRepo
in classImporter
- Throws:
ImporterException
-
close
public void close()
-
getLength
public long getLength()
-
getSuggestedName
public String getSuggestedName()
Description copied from class:Importer
Suggest a name, in case the user does not provide one- Overrides:
getSuggestedName
in classImporter
- Returns:
- String
-
-