Accessing Authlete API server through a proxy server

Accessing Authlete API server through a proxy server

Please refer to the followings when accessing the Authlete API server through a proxy server

java.net.useSystemProxies
http.proxyHost
http.proxyPort
https.proxyHost
https.proxyPort
http.nonProxyHosts

Examples

Example 1: Parse parameters as a java command

java -Djava.net.useSystemProxies=true ...

Example 2: Implement with code

System.setProperty(
    "java.net.useSystemProxies",
    "true"
);

External References

https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html

https://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm

http://www.coppermine.jp/docs/notepad/2014/12/jersey-client-with-proxy.html