2

The Proxy connection area in this page points to an example page which results in a 404. https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm

page resulting in 404

https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/HttpProxyExample.java

Basically, if I do not want to set a proxy on the JVM but want to use the following style of setting a proxy, is there a full example for this version? Is ProxyConfig supported in OCI java sdk and how do I use it?

ProxyConfig proxyConfig =
   ProxyConfig.builder()
           .host("proxy.mydomain.com")
           .port("80")
           .username("username")
           .password("password")
           .protocol(ProxyConfig.Protocol.HTTP)
           .build();
1
  • We're working on documenting proxy support for the OCI Java SDK as we speak. I think the docs on this went out a bit early, as we're still working on the solution. We'll respond back shortly.
    – Joe
    Jul 2, 2018 at 6:56

1 Answer 1

3

The Apache Connector Provider add-on that is bundled with Oracle Cloud Infrastructure Java SDK 1.2.44 enables the option to specify an HTTP(S) proxy that is for a specific client and not a JVM setting.

For more information, please refer to the README.md hosted on GitHub

An example of configuring a proxy can also be found here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.