Class PaperApiVersionFetchStepExecutor
java.lang.Object
eu.cloudnetservice.node.impl.version.execute.defaults.PaperApiVersionFetchStepExecutor
- All Implemented Interfaces:
InstallStepExecutor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(@NonNull VersionInstaller installer, @NonNull Path workingDirectory, @NonNull Set<Path> inputPaths) private @NonNull eu.cloudnetservice.driver.document.DocumentmakeRequest(@NonNull String uri) Makes a single api request to the given uri, returning the parsed response body on success.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InstallStepExecutor
interrupt
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LATEST_BUILD_URL
- See Also:
-
-
Constructor Details
-
PaperApiVersionFetchStepExecutor
public PaperApiVersionFetchStepExecutor()
-
-
Method Details
-
execute
-
makeRequest
@NonNull private @NonNull eu.cloudnetservice.driver.document.Document makeRequest(@NonNull @NonNull String uri) Makes a single api request to the given uri, returning the parsed response body on success. An empty document is returned in case the request was not successful.- Parameters:
uri- the uri to send a get request to.- Returns:
- the parsed response body in the form of a document on success, an empty document on failure.
- Throws:
NullPointerException- if the given uri is null.
-