Package org.jenkinsci.plugins.oic
Class JenkinsAwareConnectionFactory
- java.lang.Object
-
- org.jenkinsci.plugins.oic.JenkinsAwareConnectionFactory
-
- All Implemented Interfaces:
com.google.api.client.http.javanet.ConnectionFactory
public class JenkinsAwareConnectionFactory extends Object implements com.google.api.client.http.javanet.ConnectionFactory
This Factory forHttpURLConnection
honors the jenkins (proxy) settings when creating connections- Author:
- Michael Bischoff
- See Also:
This class uses, instead of a proxy object passed to the constructor, the jenkins (Jenkins.getInstance().proxy) settings when available.
-
-
Constructor Summary
Constructors Constructor Description JenkinsAwareConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpURLConnection
openConnection(URL url)
-
-
-
Method Detail
-
openConnection
public HttpURLConnection openConnection(@NonNull URL url) throws IOException, ClassCastException
- Specified by:
openConnection
in interfacecom.google.api.client.http.javanet.ConnectionFactory
- Throws:
IOException
ClassCastException
-
-