Package net.i2p.router.web
Class UpdateHandler
java.lang.Object
net.i2p.router.web.UpdateHandler
Handles the request to update the router by firing one or more
 EepGet calls to download the latest signed update file
 and displaying the status to anyone who asks.
 
After the download completes the signed update file is verified with
 TrustedUpdate, and if it's authentic the payload
 of the signed update file is unpacked and the router is restarted to complete
 the update process.
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidsetContextId(String contextId) Configure this bean to query a particular router contextvoidsetUpdateAction(String val) these two can be set in either order, so call checkUpdateAction() twicevoidsetUpdateNonce(String nonce) static ConsoleUpdateManager 
- 
Field Details
- 
_context
 - 
_log
 
 - 
 - 
Constructor Details
- 
UpdateHandler
public UpdateHandler() - 
UpdateHandler
 
 - 
 - 
Method Details
- 
updateManager
- Returns:
 - null if not found
 - Since:
 - 0.9.12
 
 - 
setContextId
Configure this bean to query a particular router context- Parameters:
 contextId- beginning few characters of the routerHash, or null to pick the first one we come across.
 - 
setUpdateAction
these two can be set in either order, so call checkUpdateAction() twice - 
setUpdateNonce
 
 -