[aerogear-dev] Proposal to change the Java Sender Builder API

Lucas Holmquist lholmqui at redhat.com
Mon Nov 10 09:14:04 EST 2014


+1  this is how we are doing it on the javascript client now( although not yet published to npm )
> On Nov 10, 2014, at 2:31 AM, Erik Jan de Wit <edewit at redhat.com> wrote:
> 
> +1 I like the static methods for creating the builder
> Also makes perfect sense to make the applicationId and masterSecret part of the sender.
>> 
>> PushSender client = DefaultPushSender.withRootServerURL("http://aerogear.example.com/ag-push <http://aerogear.example.com/ag-push>")
>>                 .proxy("proxy", 8080)
>>                 .proxyType(Proxy.Type.HTTP)
>>                 .build();
>> PushSender client = DefaultPushSender.withConfig("/path/on/classpath/push-config.json").build();
>> PushSender client = DefaultPushSender.withConfig(inputstream).build();
>> 
>> 
> 
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20141110/e4f26ca2/attachment.html 


More information about the aerogear-dev mailing list