Interface WebhookValidationService
- All Known Implementing Classes:
DefaultWebhookValidationService
public interface WebhookValidationService
A service that provides means to test if a
WebhookConfigurationModel valid.-
Method Summary
Modifier and TypeMethodDescriptionrx.Observable<org.springframework.http.ResponseEntity<Map>>pingWebhookDestination(@NotNull WebhookConfigurationModel webhookConfig, @NotNull ItemModel item) Send a test payload to check whether the WebhookConfiguration is working correctly.voidpingWebhookDestination(@NotNull WebhookConfigurationModel webhookConfiguration, @NotNull String webhookPayload) Send Mocked Integration Object Payload to Destination to validate WebhookConfiguration
-
Method Details
-
pingWebhookDestination
void pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfiguration, @NotNull @NotNull String webhookPayload) throws WebhookConfigurationValidationException Send Mocked Integration Object Payload to Destination to validate WebhookConfiguration- Parameters:
webhookConfiguration- WebhookConfigurationwebhookPayload- Mocked Payload of Integration Object- Throws:
WebhookConfigurationValidationException- Validation Exception
-
pingWebhookDestination
rx.Observable<org.springframework.http.ResponseEntity<Map>> pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfig, @NotNull @NotNull ItemModel item) Send a test payload to check whether the WebhookConfiguration is working correctly.- Parameters:
webhookConfig- WebhookConfiguration to be testeditem- Item Model instance- Returns:
- response entity
-