Interface PluginsRepositoryConnector
-
- All Known Implementing Classes:
PluginsRepositoryConnectorImpl
public interface PluginsRepositoryConnector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
executeGetRequest(String path)
Executes a HTTP GET request to the plugins repository.void
executeGetRequest(String path, HTTPRequestBuilder.ResponseConsumer consumer)
Executes a HTTP GET request to the plugins repository.void
executeRequest(HttpMethod method, String path, HTTPRequestBuilder.ResponseConsumer consumer, String requestBody)
Executes a HTTP request to the plugins repository.String
getRepositoryUrl()
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 Exception
Executes 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 Exception
Executes 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.
-
-