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

Create a generic callback to configure the APNS service builder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.14.0
    • camel-apns
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: