Class CodeDxClient

  • Direct Known Subclasses:
    CodeDxRepeatingClient

    public class CodeDxClient
    extends Object
    A RESTful client used to access the various API end-points exposed by CodeDx.
    Author:
    anthonyd
    • Field Detail

      • httpClientBuilder

        protected org.apache.http.impl.client.HttpClientBuilder httpClientBuilder
    • Constructor Detail

      • CodeDxClient

        public CodeDxClient​(String url,
                            String key)
        Creates a new client, ready to be used for communications with CodeDx.
        Parameters:
        url - URL of the CodeDx web application. The '/api' part of the URL is optional.
        key - The API key. Note that permissions must be set for this key on CodeDx admin page.
      • CodeDxClient

        public CodeDxClient​(String url,
                            String key,
                            org.apache.http.impl.client.HttpClientBuilder clientBuilder)
        Creates a new client, ready to be used for communications with CodeDx.
        Parameters:
        url - URL of the CodeDx web application. The '/api' part of the URL is optional.
        key - The API key. Note that permissions must be set for this key on CodeDx admin page.
        clientBuilder - an HttpClientBuilder that can handle the certificate used by the server