-
Notifications
You must be signed in to change notification settings - Fork 3
Bugfixes #8
base: master
Are you sure you want to change the base?
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
|
Thanks for your contribution. I'll review and integrate it on the weekend. |
|
Why have you refactored the AbstractService to use baseUrl and JerseyClient as static fields and not as instance fields? |
|
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? |
|
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. |
|
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 |
|
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
|
I added my copyright to every file I did more the cleanups in and hope everything is fine ;) |
|
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
|
I'm building it on https://drone.io/github.com/wienczny/mandrill-java-api-wrapper/ |
|
I think the build issue is nothing you need to worry about; I'll get that fixed in my build :-) |
|
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