Class ProxyClientConfig


  • public class ProxyClientConfig
    extends Object
    This class provides convenience methods to create ClientConfig properties so GitLabApi can use a proxy server.
    • Constructor Detail

      • ProxyClientConfig

        public ProxyClientConfig()
    • Method Detail

      • createProxyClientConfig

        public static Map<String,​Object> createProxyClientConfig​(String proxyUri)
        Create a Map instance with properties set up to use a proxy server that can be passed to the GitLabAPi constructors and login methods to configure the GitLabApi instance to use a proxy server.
        Parameters:
        proxyUri - the URI of the proxy server
        Returns:
        a Map set up to allow GitLabApi to use a proxy server
      • createProxyClientConfig

        public static Map<String,​Object> createProxyClientConfig​(String proxyUri,
                                                                       String username,
                                                                       String password)
        Create a Map instance set up to use a proxy server that can be passed to the GitLabAPi constructors and login methods to configure the GitLabApi instance to use a proxy server.
        Parameters:
        proxyUri - the URI of the proxy server
        username - the username for basic auth with the proxy server
        password - the password for basic auth with the proxy server
        Returns:
        a Map set up to allow GitLabApi to use a proxy server