public class ProxyConfig extends AbstractDescribableImpl<ProxyConfig>
Modifier and Type | Class and Description |
---|---|
static class |
ProxyConfig.DescriptorImpl |
Constructor and Description |
---|
ProxyConfig(String proxyUrl,
Secret proxyUsername,
Secret proxyPassword) |
Modifier and Type | Method and Description |
---|---|
okhttp3.OkHttpClient |
decorateClient(okhttp3.OkHttpClient client,
String url) |
static ProxyConfig |
getJenkinsProxyConfig()
Gets proxy config that asks Jenkins for its proxy configuration every time.
|
Secret |
getProxyPassword() |
String |
getProxyUrlFor(String url) |
Secret |
getProxyUsername() |
static org.apache.commons.lang3.tuple.Pair<String,Integer> |
parseProxyHostAndPort(String proxyUrl) |
getDescriptor
public static org.apache.commons.lang3.tuple.Pair<String,Integer> parseProxyHostAndPort(String proxyUrl)
public Secret getProxyUsername()
public Secret getProxyPassword()
public okhttp3.OkHttpClient decorateClient(okhttp3.OkHttpClient client, String url)
public static ProxyConfig getJenkinsProxyConfig()
Copyright © 2016–2023 Fortify. All rights reserved.