Uh oh!
There was an error while loading. Please reload this page.
Bugfixes - #8
Conversation
Use Jersey
Add TemplateService
Use Jersey
Add TemplateService
…i-wrapper Conflicts: pom.xml src/main/java/io/sprucehill/mandrill/data/request/MessageSendPayload.java
duergner
commented
Dec 19, 2014
Thanks for your contribution. I'll review and integrate it on the weekend. |
duergner
commented
Dec 19, 2014
Why have you refactored the AbstractService to use baseUrl and JerseyClient as static fields and not as instance fields? |
wienczny
commented
Dec 19, 2014
I think the reason was preparation for connection pooling. There are two alternatives to static fields:
Both alternatives have their advantages. Which do you prefer? |
duergner
commented
Dec 19, 2014
Ok I understand that; my original implementation was mainly used within a Spring DI/IoC container and therefore connection pooling was always done as I always injected the same HttpClient into the different services; the AbstractService was actually defined as abstract bean and reused by all the specific services when created. I think moving over to a factory based approach would be best than as one could still simply use the plain service beans inside a DI/IoC container. |
duergner
commented
Dec 19, 2014
BTW: you might want to change the author to yourself on the classes you added and feel free to add yourself as author on the classes you modified |
wienczny
commented
Dec 19, 2014
I'll try to update this PR over this weekend ;-) |
…es (key, baseUrl) and a shared jersey client. Services created by the factory are automatically assigned those variables. The jersey client is shared to support connection pooling. Add myself to license headers of changed files
wienczny
commented
Dec 20, 2014
I added my copyright to every file I did more the cleanups in and hope everything is fine ;) |
duergner
commented
Dec 20, 2014
Looks good so far (only the failing Travis CI build is strange as I added the 'mandrill_apikey' environment variable; strange) Yeah MandrillServiceFactory might be better as it would be more descriptive. So if you want to change that feel free. |
…and more descriptive
wienczny
commented
Dec 20, 2014
I'm building it on https://drone.io/github.com/wienczny/mandrill-java-api-wrapper/ |
duergner
commented
Dec 20, 2014
I think the build issue is nothing you need to worry about; I'll get that fixed in my build :-) |
alphaduke0
commented
Jan 29, 2015
Hey there is this going to be in included soon? Would love to see that ;-) |
Hi,
I've used your the api wrapper for a project and like it's API. I had to fix some bugs and add some features like calls for whitlists, rejects and templates. There was a bug when sending attachements. Some additional changes were made:
Best regards