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

Create a generic callback to configure the APNS service builder

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14.0
    • Component/s: camel-apns
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We should add an empty callback method to ApnsServiceFactory that could be used to configure (or even replace) the default ApnsServiceBuilder instance.

      Signature of the method could look as follows:

      protected ApnsServiceBuilder configureServiceBuilder(ApnsServiceBuilder serviceBuilder)
      

      And could be used like:

      ApnsServiceFactory proxiedApnsServiceFactory = new ApnsServiceFactory(){
      
          @Override
          protected ApnsServiceBuilder configureServiceBuilder(ApnsServiceBuilder serviceBuilder) {
              return serviceBuilder.withSocksProxy("my.proxy.com", 6666);
          }
      
      };
      

        Attachments

          Activity

            People

            • Assignee:
              hekonsek Henryk Konsek
              Reporter:
              hekonsek Henryk Konsek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: