public class WebhookPinger extends Object
| Constructor and Description |
|---|
WebhookPinger()
Constructs a pinger using an HTTP client with the default configuration.
|
WebhookPinger(org.apache.http.client.HttpClient httpClient)
Constructs a pinger using the provided, already configured HTTP client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ping(Webhook webhook)
Synchronously ping a Webhook and throw IOException if the ping cannot be delivered.
|
public WebhookPinger()
public WebhookPinger(org.apache.http.client.HttpClient httpClient)
httpClient - a configured HTTP client which will be used to ping the Webhook callbacks.public void ping(Webhook webhook) throws IOException
webhook - webhook to be pinged.IOException - if the ping cannot be delivered.Copyright © 2023 Atlassian. All rights reserved.