public class UpdateChecker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UpdateChecker.PluginUpdate |
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_RELEASE_DATE_FMT |
Constructor and Description |
---|
UpdateChecker(UpdateCheckCallback dfc) |
Modifier and Type | Method and Description |
---|---|
protected void |
actuallyCheckforUpdates(URI url,
Collection<Plugin> plugins,
String entryPoint)
protected for testing
|
void |
checkForUpdates(Collection<Plugin> plugins,
boolean force) |
String |
getPluginThatDisabledUpdateChecks() |
URI |
getRedirectURL(boolean force) |
protected void |
logError(Exception e,
String msg) |
protected void |
logError(Level level,
String msg) |
static void |
main(String[] args) |
boolean |
updateChecksGloballyDisabled() |
boolean |
updatesHaveBeenSeenBefore(Collection<UpdateChecker.PluginUpdate> updates) |
protected void |
writeXml(OutputStream out,
Collection<Plugin> plugins,
String entryPoint,
boolean finish)
protected for testing
|
public static final String PLUGIN_RELEASE_DATE_FMT
public UpdateChecker(UpdateCheckCallback dfc)
public void checkForUpdates(Collection<Plugin> plugins, boolean force)
@CheckForNull public URI getRedirectURL(boolean force)
public boolean updatesHaveBeenSeenBefore(Collection<UpdateChecker.PluginUpdate> updates)
public boolean updateChecksGloballyDisabled()
public String getPluginThatDisabledUpdateChecks()
protected void actuallyCheckforUpdates(URI url, Collection<Plugin> plugins, String entryPoint) throws IOException
IOException
protected final void writeXml(OutputStream out, Collection<Plugin> plugins, String entryPoint, boolean finish) throws IOException
IOException
Copyright © 2003–2015. All rights reserved.