You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2014/05/13 08:52:15 UTC

[jira] [Created] (CAMEL-7435) Create a generic callback to configure the APNS service

Henryk Konsek created CAMEL-7435:
------------------------------------

             Summary: Create a generic callback to configure the APNS service
                 Key: CAMEL-7435
                 URL: https://issues.apache.org/jira/browse/CAMEL-7435
             Project: Camel
          Issue Type: Improvement
          Components: camel-apns
            Reporter: Henryk Konsek
            Assignee: Henryk Konsek
             Fix For: 2.14.0


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

Signature of the method could look as follows: 

{code}
protected ApnsServiceBuilder configureServiceBuilder(ApnsServiceBuilder serviceBuilder)
{code}

And could be used like:

{code}
ApnsServiceFactory proxiedApnsServiceFactory = new ApnsServiceFactory(){

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

};
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)