Class WebhookSender

All Implemented Interfaces:
AutoCloseable

public class WebhookSender extends NotificationSender<NotificationSender<?>.NotificationMessage>
NotificationSender implementation that sends a webhook notification. The payload is available to the template as an object with the key "payload", and serialized as JSON with the key "payloadJson". A WebhookSender instance can be configured with the following Configuration properties:
  • url: The URL to send the webhook notification to.
  • method: The HTTP method to use. Default is post.
  • contentType: The content type of the request body. Default is application/json
See also NotificationSender for the common properties available to all notification senders.