Class InstallerChanges
java.lang.Object
org.bgerp.app.dist.inst.InstallerChanges
Parse changes info out of NGINX directory listing HTML.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor loads list of changes, directory names underUPDATE_TO_CHANGE_URL.InstallerChanges(String changeId) Constructor downloads update files fromUPDATE_TO_CHANGE_URL/ The names of this files are available after withgetUpdateFiles(). -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jsoup.nodes.DocumentLoads and parses the directory listing HTML.protected voidDownloads a file into the temporary directory.Changes list.Update ZIP files, stored inUtils.getTmpDir()
-
Field Details
-
UPDATE_TO_CHANGE_URL
Base URL of the changes directory -
MASTER_RELEASE_CHANGE_ID
-
-
Constructor Details
-
InstallerChanges
Constructor loads list of changes, directory names underUPDATE_TO_CHANGE_URL. The result is available after usinggetChanges().- Throws:
IOException- on a network or IO errorParseException- on a change date parse error
-
InstallerChanges
Constructor downloads update files fromUPDATE_TO_CHANGE_URL/ The names of this files are available after withgetUpdateFiles().- Parameters:
changeId- string with directory name.- Throws:
IOException- on a network or IO errorURISyntaxException- on a malformed download URL
-
-
Method Details
-
changes
Loads and parses the directory listing HTML.- Parameters:
url- directory listing URL- Returns:
- parsed document
- Throws:
IOException- on a network or IO error
-
download
Downloads a file into the temporary directory.- Parameters:
url- base URLname- file name- Throws:
IOException- on a network or IO errorURISyntaxException- on a malformed URL
-
getChanges
Changes list. EachIdStringTitlehas numeric change ID and ID plus file modification time in title.- Returns:
- changes list
-
getUpdateFiles
Update ZIP files, stored inUtils.getTmpDir()- Returns:
- update file names
-