|
ConsumerForwardProxy
Forward-proxy configuration for consumer sites / Relying Parties
zh-Hans , en Consumer Forward ProxyIf your Relying Party / consumer site needs to access the internet through a proxy, the following proxy configuration is necessary, before the ConsumerManager is instantiated: // --- Forward proxy setup (only if needed) ---
ProxyProperties proxyProps = new ProxyProperties();
proxyProps.setProxyName("proxy.example.com");
proxyProps.setProxyPort(8080);
HttpClientFactory.setProxyProperties(proxyProps);
|
► Sign in to add a comment
Is there a way to define proxying exceptions? i.e., let it work like below?
There is no getter/setter for ProxyProperties? like:
Hi, no response for the comment? maybe my explanation was bad...
What I meant was that the current design of HttpClientFactory? and ProxyProperties? seems not able to handle something equivalent to env variable "NO_PROXY".
For example, if following Env Variables are set, then "wget" command on unix systems use proxy for such uri's as "http://google.com" but does not use one for "http://sales.my-company.com"
http://java.sun.com/javase/6/docs/api/java/net/Proxy.html