You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JerseyClientBuilder.newClient() can take javax.ws.rs.core.Configuration as argument, but method is private and I cannot override it. Method configureClient is package-private like its class itself and I cannot extend MailForm or MailMultipart.
Yep, I didn't want to leak the client library (jax-rs, jersey) as much as possible. So adjusting the client directly is not currently possible.
I'm planning a 2.x version which won't depend on a single library but allow to use any (Jersey, Resteasy, Unirest) and, of course, would allow to customize it. But that's planning phase yet.
But those two timeouts could be general enough to be added to the configuration and still keep it on future versions.
Would that be enough? Are any other parameters worth adding?
@sargue Thanks for the quick feedback ☕️
Yep, timeouts are enough. That's because sometimes I received timeout exception on sending my emails. And large timeout helps as well.
I need to change default configuration of rest client, at least timeouts.
How can I change client configuration using your mailgun library?
I found this part of code:
JerseyClientBuilder.newClient()
can takejavax.ws.rs.core.Configuration
as argument, but method is private and I cannot override it. MethodconfigureClient
is package-private like its class itself and I cannot extendMailForm
orMailMultipart
.I need to do smth like this:
The text was updated successfully, but these errors were encountered: