private static class GettingStarted.MotdContent extends CacheCustomContent<java.io.IOException>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
myJava |
private java.lang.String |
myLang |
private int |
myVersion |
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY
Constructor and Description |
---|
MotdContent() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkOfflineAccess() |
protected boolean |
isCacheValid()
Additionally check if JOSM has been updated and refresh MOTD
|
protected byte[] |
updateData()
This function gets executed whenever the cached files need updating
|
flushData, getData, getDataString, updateForce, updateForceString, updateIfRequired, updateIfRequiredString
private final int myVersion
private final java.lang.String myJava
private final java.lang.String myLang
public MotdContent()
protected byte[] updateData() throws java.io.IOException
updateData
in class CacheCustomContent<java.io.IOException>
java.io.IOException
CacheCustomContent.updateData()
protected void checkOfflineAccess()
checkOfflineAccess
in class CacheCustomContent<java.io.IOException>
protected boolean isCacheValid()
isCacheValid
in class CacheCustomContent<java.io.IOException>