Package com.fortify.plugin.jenkins
Class ProxyConfig
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ProxyConfig>
-
- com.fortify.plugin.jenkins.ProxyConfig
-
- All Implemented Interfaces:
Describable<ProxyConfig>
public class ProxyConfig extends AbstractDescribableImpl<ProxyConfig>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyConfig.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description ProxyConfig(String proxyUrl, Secret proxyUsername, Secret proxyPassword)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.OkHttpClientdecorateClient(okhttp3.OkHttpClient client, String url)static ProxyConfiggetJenkinsProxyConfig()Gets proxy config that asks Jenkins for its proxy configuration every time.SecretgetProxyPassword()StringgetProxyUrlFor(String url)SecretgetProxyUsername()static org.apache.commons.lang3.tuple.Pair<String,Integer>parseProxyHostAndPort(String proxyUrl)-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
parseProxyHostAndPort
public static org.apache.commons.lang3.tuple.Pair<String,Integer> parseProxyHostAndPort(String proxyUrl)
-
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 :).
-
-