[
https://issues.apache.org/jira/browse/CAMEL-12399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Fang resolved CAMEL-12399.
----------------------------------
Resolution: Fixed
Fix Version/s: 2.22.0
2.21.1
> CxfRsProducer doesn't configure CxfRsEndpointConfigurer while using the Proxy
> API
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-12399
> URL: https://issues.apache.org/jira/browse/CAMEL-12399
> Project: Camel
> Issue Type: Bug
> Components: camel-cxfrs
> Affects Versions: 2.21.0
> Reporter: Mike Schippers
> Assignee: Freeman Fang
> Priority: Major
> Fix For: 2.21.1, 2.22.0
>
>
> The CxfRsProducer doesn't configure a CxfRsEndpointConfigurer on the client
> while using the Proxy API. When using the HTTP API this is working fine.
> So when i create an endpoint like this:
>
> {code:java}
> CxfRsEndpoint endpoint = new CxfRsEndpoint();
> endpoint.setCxfRsEndpointConfigurer(new MyCxfRsEndpointConfigurer());
> {code}
>
> {code:java}
> public static class MyCxfRsEndpointConfigurer implements
> CxfRsEndpointConfigurer {
> @Override
> public void configure(AbstractJAXRSFactoryBean factoryBean) {
> }
> @Override
> public void configureClient(Client client) {
> client.header("foo", "bar");
> }
> @Override
> public void configureServer(Server server) {
> }
> }
> {code}
> In case i use the HTTP API the header "foo" is sent but not when i use the
> Proxy API.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)