Interface PluginsRepositoryConnector

    • 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.