Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12399

CxfRsProducer doesn't configure CxfRsEndpointConfigurer while using the Proxy API

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.21.0
    • Fix Version/s: 2.21.1, 2.22.0
    • Component/s: camel-cxfrs
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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:

       

      CxfRsEndpoint endpoint = new CxfRsEndpoint(); endpoint.setCxfRsEndpointConfigurer(new MyCxfRsEndpointConfigurer());
      

       

      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) {
          }
      }
      

      In case i use the HTTP API the header "foo" is sent but not when i use the Proxy API.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Yue Fang
                Reporter:
                mikeschippers Mike Schippers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: