Class WebhookEventToItemSender

  • All Implemented Interfaces:
    WebhookEventSender

    public final class WebhookEventToItemSender
    extends java.lang.Object
    implements WebhookEventSender
    Default implementation of the WebhookEventSender. This implementation uses the OutboundServiceFacade to do the actual posting to the destination because the OutboundServiceFacade already provides item to JSON conversion, and monitoring.
    • Constructor Detail

      • WebhookEventToItemSender

        public WebhookEventToItemSender​(@NotNull
                                        @NotNull OutboundServiceFacade outboundServiceFacade,
                                        @NotNull
                                        @NotNull WebhookConfigurationService webhookConfigurationService,
                                        @NotNull
                                        @NotNull ModelService modelService)
        Instantiates the WebhookEventToItemSender
        Parameters:
        outboundServiceFacade - OutboundServiceFacade used to send the event out to the destination
        webhookConfigurationService - WebhookConfigurationService used to look up WebhookConfigurationModel
        modelService - ModelService used to look up ItemModel
    • Method Detail

      • setFilterService

        public void setFilterService​(WebhookFilterService service)
        Injects an optional filter service to be used by this item sender. If the webhook filter service is not injected, no item filtering will be performed.
        Parameters:
        service - an implementation of the WebhookFilterService that will execute filtering logic for the items being sent by this item sender.