Class GithubReleaseUpdater
java.lang.Object
io.github.projectunified.mcserverupdater.api.GithubReleaseUpdater
- All Implemented Interfaces:
Checksum
,InputStreamUpdater
,SimpleChecksum
,Updater
- Direct Known Subclasses:
DivineUpdater
,LeafUpdater
,LuminolUpdater
,PlazmaUpdater
public abstract class GithubReleaseUpdater
extends Object
implements SimpleChecksum, InputStreamUpdater
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final String
protected final String
protected final UpdateBuilder
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GithubReleaseUpdater
(VersionQuery versionQuery, String repo) -
Method Summary
Modifier and TypeMethodDescriptionabstract Pattern
getCurrentChecksum
(File file) abstract String
protected org.json.JSONObject
protected org.json.JSONObject
getReleaseByPredicate
(Predicate<org.json.JSONObject> predicate) protected org.json.JSONObject
getReleaseByTag
(String tag) protected org.json.JSONObject
getReleaseByTagMatch
(Predicate<String> tagPredicate) abstract org.json.JSONObject
void
setChecksum
(File file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.mcserverupdater.api.InputStreamUpdater
update
Methods inherited from interface io.github.projectunified.mcserverupdater.api.SimpleChecksum
checksum
-
Field Details
-
updateBuilder
-
version
-
build
-
releasesUrl
-
repo
-
-
Constructor Details
-
GithubReleaseUpdater
-
-
Method Details
-
getArtifactPattern
-
getDefaultVersion
-
getReleaseObject
public abstract org.json.JSONObject getReleaseObject() -
getLatestRelease
protected org.json.JSONObject getLatestRelease() -
getReleaseByTag
-
getReleaseByPredicate
-
getReleaseByTagMatch
-
getInputStream
- Specified by:
getInputStream
in interfaceInputStreamUpdater
-
getChecksum
- Specified by:
getChecksum
in interfaceSimpleChecksum
-
setChecksum
- Specified by:
setChecksum
in interfaceChecksum
- Throws:
Exception
-
getCurrentChecksum
- Specified by:
getCurrentChecksum
in interfaceSimpleChecksum
- Throws:
Exception
-
getDebugConsumer
- Specified by:
getDebugConsumer
in interfaceUpdater
-