new UpdateURICallback());
try {
updateURI = new FreenetURI(updaterConfig.getString("URI"));
} catch (MalformedURLException e) {
throw new InvalidConfigValueException(l10n("invalidUpdateURI",
"error", e.getLocalizedMessage()));
}
updateURI = updateURI.setSuggestedEdition(Version.buildNumber());
if(updateURI.hasMetaStrings())
throw new InvalidConfigValueException(l10n("updateURIMustHaveNoMetaStrings"));
if(!updateURI.isUSK())
throw new InvalidConfigValueException(l10n("updateURIMustBeAUSK"));
updaterConfig.register("revocationURI", REVOCATION_URI, 4, true, false,
"NodeUpdateManager.revocationURI",
"NodeUpdateManager.revocationURILong",
new UpdateRevocationURICallback());
try {
revocationURI = new FreenetURI(
updaterConfig.getString("revocationURI"));
} catch (MalformedURLException e) {
throw new InvalidConfigValueException(l10n("invalidRevocationURI",
"error", e.getLocalizedMessage()));
}
LegacyJarFetcher.LegacyFetchCallback legacyFetcherCallback = new LegacyJarFetcher.LegacyFetchCallback() {