You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Idar Borlaug (JIRA)" <ji...@apache.org> on 2010/06/07 08:59:54 UTC
[jira] Updated: (CXF-2839) CXF HttpConduit doesn't read VM proxy
settings
[ https://issues.apache.org/jira/browse/CXF-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Idar Borlaug updated CXF-2839:
------------------------------
Description:
When setting proxy server as VM parameters http.proxyHost, http.proxyPort,
proxySet, http.nonProxyHosts. HttpConduit doesn't read those properties and set proxy server.
I have to manually set these after creating the client.
if("true".equalsIgnoreCase(System.getProperty("proxySet"))){
Client client = ClientProxy.getClient(service);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = http.getClient();
httpClientPolicy.setProxyServer(System.getProperty("http.proxyHost"));
httpClientPolicy.setProxyServerPort(Integer.parseInt(System.getProperty("http.proxyPort")));
}
was:
When setting proxy server as VM parameters http.proxyHost, http.proxyPort,
proxySet, http.nonProxyHosts. HttpConduit doesn't read those properties and set proxy server.
I have to manually set these after creating the client.
> CXF HttpConduit doesn't read VM proxy settings
> ----------------------------------------------
>
> Key: CXF-2839
> URL: https://issues.apache.org/jira/browse/CXF-2839
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.6, 2.2.7, 2.2.8
> Reporter: Idar Borlaug
>
> When setting proxy server as VM parameters http.proxyHost, http.proxyPort,
> proxySet, http.nonProxyHosts. HttpConduit doesn't read those properties and set proxy server.
> I have to manually set these after creating the client.
> if("true".equalsIgnoreCase(System.getProperty("proxySet"))){
> Client client = ClientProxy.getClient(service);
> HTTPConduit http = (HTTPConduit) client.getConduit();
> HTTPClientPolicy httpClientPolicy = http.getClient();
> httpClientPolicy.setProxyServer(System.getProperty("http.proxyHost"));
> httpClientPolicy.setProxyServerPort(Integer.parseInt(System.getProperty("http.proxyPort")));
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.