Search in sources :

Example 1 with Client

use of com.sendgrid.Client in project iaf by ibissource.

the class SendGridSender method open.

@Override
public void open() throws SenderException {
    super.open();
    httpSender.open();
    CloseableHttpClient httpClient = httpSender.getHttpClient();
    if (httpClient == null)
        throw new SenderException("no HttpClient found, did it initialize properly?");
    Client client = new Client(httpClient);
    sendGrid = new SendGrid(getCredentialFactory().getPassword(), client);
}
Also used : CloseableHttpClient(org.apache.http.impl.client.CloseableHttpClient) SendGrid(com.sendgrid.SendGrid) SenderException(nl.nn.adapterframework.core.SenderException) Client(com.sendgrid.Client) CloseableHttpClient(org.apache.http.impl.client.CloseableHttpClient)

Aggregations

Client (com.sendgrid.Client)1 SendGrid (com.sendgrid.SendGrid)1 SenderException (nl.nn.adapterframework.core.SenderException)1 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)1