Difference between revisions of "UpdaterV1"

Line 11: Line 11:
  
 
== UpdateSite URL representation ==
 
== UpdateSite URL representation ==
[[http://www.plantuml.com/plantuml/uml/ZP11ImCn48Nl-HKX9olsqAkKqY881RLWwG-ODhCrEfk4RA8K_F7EsgqsRhPucttlovktCsyYX9Xg4iP631NiKAebJx0bdDuRmjNs5NTnfaHPbjFFyLYsIdFdY5Wppee_tr9Db7JCgHhiGScDrn1nRIAAt_4RkcwXoJcnUNuOWXOfkfeDpSmHwIs-bO_Wf-iOZDtVdANEPFgP6v5jupT7Ncgi855aROYedJQLGPqZxETy2fJPXUOIUbB-fC6so5Mtc1D7kRy_-YFHpsPtwnmXM6dnW-M5zy6zeowptOeM3LH6kCmJstcVCle2JOSE05pyCW3Uq-4VoB8w_TSGzeReLwGl19ckR3afFq0EdYuCdJ0ISxGwrVG5 src]]
+
[[http://www.plantuml.com/plantuml/uml/ZPB1Ri8m38RlVGehfp6Dmwu88T2aIMXZI4CyW6bSbYrDeZHbGjh3pnrTIscAEDNz_o-_xJRp8g0FPQuJPGBv35C2iUGATvgcpqhJUlT9QPY992x3z6SyXaefdgpMh2bhaejt48y2B7CYHtCKi7KI0srKeAGj_w3x2kBdeWmsPqDktrzFI2zp0YjqqqtmokmVpY9dK3PrSPu_WHCC1dEA6gNNNNrdhIOqWDpoG77FPfbA5GwS_29olCFAIiKOLfDtmVwcW3sfUwIWmCvTE_Ievo-CVE7EbrYaMJkgeM-M5yvvUo0PP-km2lKwZd3tDxPlwVo1HOqE07iArm5qJXzlG9RP_rv3MFMZrbfU2LBriF6ao0TemEOQrS8ecPEHPQv_0G00 src]]
 
[[File:FilesCollectionClass.png]]
 
[[File:FilesCollectionClass.png]]
  
 
== Manually add update site and edit URL ==
 
== Manually add update site and edit URL ==
  [[http://www.plantuml.com/plantuml/uml/XOun3i8m303tlC8Vw0SGGfMec601zG5MRIfBReeQP-3tn5CZYkYImRuxfqs6Y-L9WuafmmrZHjKt817a5w4n92aFHW8cCUZlLmYFCagTeCuZD2UuY78wpweycCmH3gxtRhEJOLZOGzNao_38kYs-6x_4SZrKOAtvRZMh7sxYYMstur37JypgxD_Sk9zpQDCvDiq6e_Laov7of1y0 src]]
+
  [[http://www.plantuml.com/plantuml/uml/VP0n3i8m34NtdC8N20T0K5K2CS42wW6inYgMJ8eQP-3sE7H9Cx3yuUUzdoXzKbmqlyGfgn3SC6OK-G260FaTK0aIMs0CG84LXliLtCEgT6QKUGBVmOM5qcaMeL5vZh0l-l2p2-d6XSfGrRI6xwfJyrUZlMU3959xYwkwbj0dfrrU18vW-NTiMiTgvE3zbYaRFSLWl_K5 src]]
 
[[File:PersonalSiteSequence.png]]
 
[[File:PersonalSiteSequence.png]]
 
 
== Manually edit the URL of an official update site ==
 
[[http://www.plantuml.com/plantuml/uml/lOz1ReCm44NtFiLSm1UeAaJLggjMaH9nW0aUev46ZF0uvu_D1Yj4OPSDYp_l_O_RgBXe6iKegn2SlEUUKI3D3fKWSlwOEJCvdd5IkEGa_cGa3ERhXYnu5Lf3i0tyib3y3YBKAuS9FW2TwzQkmfX-eL9R9O-6RQfhzelnJEpEVwO2YrRVDhFwuLtvG7hGiq5rpwUrEyoHnoG5VJaPZoTNw3yuzaokmEzwmbXjjZIvDCeT src]]
 
[[File:OfficialSiteSequence.png]]
 
  
 
== Update Check on Startup ==
 
== Update Check on Startup ==
 
* this is the `onEvent` Method of the `DefaultUpdateService` which is called when the ImageJ UI is shown  
 
* this is the `onEvent` Method of the `DefaultUpdateService` which is called when the ImageJ UI is shown  
[[http://www.plantuml.com/plantuml/uml/ZPFH3fiW68NlVGfUe2-mB4kTOch6r2XisLN3y5yaHJ3uwrv_EDfaRMFS7Pxp_GUEudb6wN4PJO8Q3H0nzHA1P0Ee6t6MT7_jASdXbrmCHhi3lse5vFGfWeNpqPZ91-8Ncxog0HGJTtbu28JQt4GgrEicF9paiNZ1BQpWMnYrxT-2FvvE_wBPXMPVhboq5SslTL7iHSw3MqmVCrcG_55mIx-MLNvbAQVjNgYIzhlN2CTPQJXSnNxi1UcvyGv18VJCAOdQsQFCfgqvpNXepUeivMLTxOVdi89nqt7fd7wZh6xs6mzoXGhmj_Etp5aBwd-E6ZuBAokQA0-RK6W3S-QCYTDFMxruOJWE7K21wP-GxNKwvOn0RHxtxy9vqtNBD3cFJt2wIctaJmETZXTwa7EiiWcYPVTUYGTSl2MYoLDEqy-ClZMFMuyJYXayTr6-_oBlneR7bHVbdJg3xPVH_040 src]]
+
[[http://www.plantuml.com/plantuml/uml/bPDHZfmm44J_EGKNc0j4KRG4FDfHl8309CeNSaolnbhZHdP3hXyJJqPXLeZaawhgHnSsJvwaetaq2Maoa7RJ80dI_0hgBKMRjh_jAIdWLSw6ejs2MxI2zFGf1i_eek7J3wcRRVAeXc0t2Ip2GqYerKsa8hq4uUuazyWsRc41ry2exV0E_F5q-ZkQFxFyIo-wfcH5NvtFUqX_nTaCaSc3v8x03Nkvb4NFCy6QFQYIzflJ1CUiB2nNykzx8ErhXmIAOE2e96cqHyowgGJBHMZDgpmJbwhSXnUmWC7fk7J1lZ9UrVkDhtA14kWdkhSShGNrBwk6O-6NaYNAmIgSjG6Vep5nUlEg1oyCnw63KCWCcyZwEL6XwKYRF_VlMOYwRUTfGaURSBP8RUGF0wsE5_egVQoo2bt3RxsEUdPraGcMVUPiWx-Zuc5mwUa51_sgOVWFeWEQdGrABwf-LT_DnjhZH9q79p3Ajz_pmTXivhhBBVK4TfX7ymi0 src]]
 
[[File:UpdateCheckStartupSequence.png]]
 
[[File:UpdateCheckStartupSequence.png]]
  
Line 31: Line 26:
 
* called from startup in case there are updates available (see last line in previous diagram)
 
* called from startup in case there are updates available (see last line in previous diagram)
 
* called via Help > Update...
 
* called via Help > Update...
[[http://www.plantuml.com/plantuml/uml/bLJDRjim3BxxANJSWEG5Xc6eqQ9OXcuhcdftHQ8zehGaY7IoxkcdE4srM6tZtYH-Fo95IXSiEihGKoKe16hLwmw-DS5gWQYm3mGzE67r56fMwWFlmzWYs8_LAN_vPMBm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N57r5GlvDGQZwxGcVRXdy3 src]]
 
[[File:ImageJUpdaterSequence.png]]
 
[[File:ImageJUpdaterSequence.png]]
  

Revision as of 08:04, 11 June 2019

Updater V1 technical details

I'll use this page to document the changes made to the ImageJ Updater in the about to be released version called V1.

What's different

  • Added a check whether Java supports the HTTPS certificate of the imagej.net server
  • Depending on what's supported, the updater will use HTTPS or HTTP links for the update sites on imagej.net (and throw a warning in case HTTPS is not supported)
  • Uploading via HTTPS is working now, both basic and digest authentication supported
  • The updater is smarter about updating URLs of official sites (= listed on the list of available update sites) in case they change remotely
  • There is an interface to review updates to the URLs of active update sites

UpdateSite URL representation

[src] FilesCollectionClass.png

Manually add update site and edit URL

[src]

PersonalSiteSequence.png

Update Check on Startup

  • this is the `onEvent` Method of the `DefaultUpdateService` which is called when the ImageJ UI is shown

[src] UpdateCheckStartupSequence.png

ImageJUpdater implements UpdaterUI

  • called from startup in case there are updates available (see last line in previous diagram)
  • called via Help > Update...

[src] ImageJUpdaterSequence.png

Command line usage

ImageJ --update refresh-update-sites --simulate
ImageJ --update refresh-update-sites
ImageJ --update refresh-update-sites --updateall
ImageJ --update refresh-update-sites --keepall

Relevant PRs / issues