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 Stringprotected final Stringprotected final Stringprotected final UpdateBuilderprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGithubReleaseUpdater(VersionQuery versionQuery, String repo) -
Method Summary
Modifier and TypeMethodDescriptionabstract PatterngetCurrentChecksum(File file) abstract Stringprotected org.json.JSONObjectprotected org.json.JSONObjectgetReleaseByPredicate(Predicate<org.json.JSONObject> predicate) protected org.json.JSONObjectgetReleaseByTag(String tag) protected org.json.JSONObjectgetReleaseByTagMatch(Predicate<String> tagPredicate) abstract org.json.JSONObjectvoidsetChecksum(File file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.mcserverupdater.api.InputStreamUpdater
updateMethods 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:
getInputStreamin interfaceInputStreamUpdater
-
getChecksum
- Specified by:
getChecksumin interfaceSimpleChecksum
-
setChecksum
- Specified by:
setChecksumin interfaceChecksum- Throws:
Exception
-
getCurrentChecksum
- Specified by:
getCurrentChecksumin interfaceSimpleChecksum- Throws:
Exception
-
getDebugConsumer
- Specified by:
getDebugConsumerin interfaceUpdater
-