Class WebhookPinger
java.lang.Object
com.atlassian.crowd.manager.webhook.WebhookPinger
Synchronously ping a Webhook.
- Since:
- v2.7
-
Constructor Summary
ConstructorDescriptionConstructs 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. -
Method Summary
-
Constructor Details
-
WebhookPinger
public WebhookPinger()Constructs a pinger using an HTTP client with the default configuration. This constructor exists to simplify the wiring of this object in host applications. -
WebhookPinger
public WebhookPinger(org.apache.http.client.HttpClient httpClient) Constructs a pinger using the provided, already configured HTTP client.- Parameters:
httpClient
- a configured HTTP client which will be used to ping the Webhook callbacks.
-
-
Method Details
-
ping
Synchronously ping a Webhook and throw IOException if the ping cannot be delivered.- Parameters:
webhook
- webhook to be pinged.- Throws:
IOException
- if the ping cannot be delivered.
-