cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2839) CXF HttpConduit doesn't read VM proxy settings
Date Wed, 20 Oct 2010 15:04:24 GMT

     [ https://issues.apache.org/jira/browse/CXF-2839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-2839.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.1
                   2.2.12

> 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
>            Assignee: Daniel Kulp
>             Fix For: 2.2.12, 2.3.1
>
>         Attachments: 0001-Fix-typo.patch, 0002-CXF-2839-CXF-HttpConduit-doesn-t-read-VM-proxy-setti.patch
>
>
> 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.


Mime
View raw message