Interface PluginsRepositoryConnector
-
- All Known Implementing Classes:
PluginsRepositoryConnectorImpl
public interface PluginsRepositoryConnector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringexecuteGetRequest(String path)Executes a HTTP GET request to the plugins repository.voidexecuteGetRequest(String path, HTTPRequestBuilder.ResponseConsumer consumer)Executes a HTTP GET request to the plugins repository.voidexecuteRequest(HttpMethod method, String path, HTTPRequestBuilder.ResponseConsumer consumer, String requestBody)Executes a HTTP request to the plugins repository.StringgetRepositoryUrl()Gets a current repository URL.
-
-
-
Method Detail
-
getRepositoryUrl
@NotNull String getRepositoryUrl()
Gets a current repository URL.- Returns:
-
executeGetRequest
@NotNull String executeGetRequest(@NotNull String path) throws Exception
Executes a HTTP GET request to the plugins repository.- Parameters:
path- is a request path.- Returns:
- response body.
- Throws:
Exception- in case of connection problems.
-
executeGetRequest
void executeGetRequest(@NotNull String path, @NotNull HTTPRequestBuilder.ResponseConsumer consumer) throws ExceptionExecutes a HTTP GET request to the plugins repository.- Parameters:
path- is a request path.consumer- is a request consumer.- Throws:
Exception- in case of connection problems.
-
executeRequest
void executeRequest(@NotNull HttpMethod method, @NotNull String path, @NotNull HTTPRequestBuilder.ResponseConsumer consumer, @Nullable String requestBody) throws ExceptionExecutes a HTTP request to the plugins repository.- Parameters:
method- is a request method.path- is a request path.consumer- is a request consumer.requestBody- is a request body.- Throws:
Exception- in case of connection problems.
-
-