private static class GettingStarted.MotdContent extends CacheCustomContent<IOException>
Modifier and Type | Field and Description |
---|---|
private String |
myJava |
private 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 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
public MotdContent()
protected byte[] updateData() throws IOException
updateData
in class CacheCustomContent<IOException>
IOException
CacheCustomContent.updateData()
protected boolean isCacheValid()
isCacheValid
in class CacheCustomContent<IOException>