[
https://issues.apache.org/jira/browse/CAMEL-12399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16411129#comment-16411129
]
ASF GitHub Bot commented on CAMEL-12399:
----------------------------------------
GitHub user mikeschippers opened a pull request:
https://github.com/apache/camel/pull/2265
CAMEL-12399: CxfRsProducer configures CxfRsEndpointConfigurer while using
the Proxy API
With this change CxfRsProducer configures CxfRsEndpointConfigurer while
using the Proxy API (invokeProxyClient)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mikeschippers/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2265.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2265
----
commit b1ad26ab133b50d91c298fbb82113f5ecc9b79cb
Author: Schippers <mike.schippers@...>
Date: 2018-03-23T09:51:14Z
CAMEL-12399: fix CxfRsProducer doesn't configure CxfRsEndpointConfigurer
while using Proxy API
----
> 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
> Priority: Major
>
> 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)