Package nl.b3p.brmo.bgt.loader.cli
Class DownloadCommand
java.lang.Object
nl.b3p.brmo.bgt.loader.cli.DownloadCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApiClient
getApiClient
(URI baseUri) int
initial
(DatabaseOptions dbOptions, LoadOptions loadOptions, ExtractSelectionOptions extractSelectionOptions, boolean noGeoFilter, URI downloadServiceURI, CLIOptions cliOptions, boolean showHelp) void
setBGTDatabase
(BGTDatabase bgtDatabase) set a preconfigured database instead of using one created in the command using the dbOtions.int
update
(DatabaseOptions dbOptions, CLIOptions cliOptions, URI downloadServiceURI, boolean noHttpZipRandomAccess, boolean showHelp)
-
Constructor Details
-
DownloadCommand
public DownloadCommand()
-
-
Method Details
-
getApiClient
-
initial
public int initial(DatabaseOptions dbOptions, LoadOptions loadOptions, ExtractSelectionOptions extractSelectionOptions, boolean noGeoFilter, URI downloadServiceURI, CLIOptions cliOptions, boolean showHelp) throws Exception - Throws:
Exception
-
setBGTDatabase
set a preconfigured database instead of using one created in the command using the dbOtions. Useful when using a JDNI database.- Parameters:
bgtDatabase
- the BGT database to use for any issued commands
-
update
public int update(DatabaseOptions dbOptions, CLIOptions cliOptions, URI downloadServiceURI, boolean noHttpZipRandomAccess, boolean showHelp) throws Exception - Throws:
Exception
-