Class ProxyConfig

    • Constructor Detail

      • ProxyConfig

        @DataBoundConstructor
        public ProxyConfig​(String proxyUrl,
                           Secret proxyUsername,
                           Secret proxyPassword)
    • Method Detail

      • parseProxyHostAndPort

        public static org.apache.commons.lang3.tuple.Pair<String,​Integer> parseProxyHostAndPort​(String proxyUrl)
      • getProxyUrlFor

        public String getProxyUrlFor​(String url)
      • getProxyUsername

        public Secret getProxyUsername()
      • getProxyPassword

        public Secret getProxyPassword()
      • decorateClient

        public okhttp3.OkHttpClient decorateClient​(okhttp3.OkHttpClient client,
                                                   String url)
      • getJenkinsProxyConfig

        public static ProxyConfig getJenkinsProxyConfig()
        Gets proxy config that asks Jenkins for its proxy configuration every time.
        Returns:
        a Proxy proxy object for Jenkins proxy :).