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

CxfRsProducer doesn't configure CxfRsEndpointConfigurer while using the Proxy API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.21.0
    • 2.21.1, 2.22.0
    • camel-cxfrs
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: