Class UrlDownloaderStrategy
java.lang.Object
wtf.ranked.hytale.server.runner.mod.strategy.ModDownloaderStrategy<UrlMod>
wtf.ranked.hytale.server.runner.mod.strategy.UrlDownloaderStrategy
- All Implemented Interfaces:
org.gradle.workers.WorkAction<ModDownloaderStrategy.ModDownloaderExtension>
Strategy for downloading mods via direct HTTP/HTTPS requests.
Retrieves the HttpResourceProvider service to perform
the download and saves the resulting file into the configured
Hytale mods directory.
-
Nested Class Summary
Nested classes/interfaces inherited from class wtf.ranked.hytale.server.runner.mod.strategy.ModDownloaderStrategy
ModDownloaderStrategy.ModDownloaderExtension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidExecutes the HTTP download using the metadata provided in theUrlMod.protected abstract @NonNull org.gradle.api.provider.Property<HttpResourceProvider> Methods inherited from class wtf.ranked.hytale.server.runner.mod.strategy.ModDownloaderStrategy
downloadMod, execute, isModInstalledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.workers.WorkAction
getParameters
-
Constructor Details
-
UrlDownloaderStrategy
public UrlDownloaderStrategy()
-
-
Method Details
-
download
Executes the HTTP download using the metadata provided in theUrlMod.- Specified by:
downloadin classModDownloaderStrategy<UrlMod>- Parameters:
mod- the URL-based mod definition- Throws:
ResourceDownloadException
-
getResourceProvider
@ServiceReference("httpResourceProvider") protected abstract @NonNull org.gradle.api.provider.Property<HttpResourceProvider> getResourceProvider()
-