public class JenkinsAwareConnectionFactory extends Object implements com.google.api.client.http.javanet.ConnectionFactory
HttpURLConnection
honors the jenkins (proxy) settings when creating connectionsThis class uses, instead of a proxy object passed to the constructor, the jenkins {@link ProxyConfiguration} (Jenkins.getInstance().proxy) settings when available.
Constructor and Description |
---|
JenkinsAwareConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
HttpURLConnection |
openConnection(URL url) |
public HttpURLConnection openConnection(@Nonnull URL url) throws IOException, ClassCastException
openConnection
in interface com.google.api.client.http.javanet.ConnectionFactory
IOException
ClassCastException
Copyright © 2016–2019. All rights reserved.