Class DefaultWebhookValidationService
- java.lang.Object
-
- de.hybris.platform.webhookservices.service.impl.DefaultWebhookValidationService
-
- All Implemented Interfaces:
WebhookValidationService
public class DefaultWebhookValidationService extends java.lang.Object implements WebhookValidationService
Default implementation of WebhookValidationService
-
-
Constructor Summary
Constructors Constructor Description DefaultWebhookValidationService(@NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull OutboundServiceFacade outboundServiceFacade)Deprecated, for removal: This API element is subject to removal in a future version.Since 2111.DefaultWebhookValidationService(@NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull CloudEventHeadersService cloudEventHeadersService)Instantiates theDefaultWebhookValidationService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description rx.Observable<org.springframework.http.ResponseEntity<java.util.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 java.lang.String webhookPayload)Send Mocked Integration Object Payload to Destination to validate WebhookConfiguration
-
-
-
Constructor Detail
-
DefaultWebhookValidationService
@Deprecated(since="2111", forRemoval=true) public DefaultWebhookValidationService(@NotNull @NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull @NotNull OutboundServiceFacade outboundServiceFacade)Deprecated, for removal: This API element is subject to removal in a future version.Since 2111. Use the new constructor instead.Instantiates theDefaultWebhookValidationService- Parameters:
integrationRestTemplateFactory- Factory class to create REST clients for webhook integrations.outboundServiceFacade- OutboundServiceFacade builds the payload and to integrate with restful endpoint
-
DefaultWebhookValidationService
public DefaultWebhookValidationService(@NotNull @NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull @NotNull CloudEventHeadersService cloudEventHeadersService)Instantiates theDefaultWebhookValidationService- Parameters:
integrationRestTemplateFactory- Factory class to create REST clients for webhook integrations.outboundServiceFacade- OutboundServiceFacade builds the payload and to integrate with restful endpointcloudEventHeadersService- to generate CloudEvent headers
-
-
Method Detail
-
pingWebhookDestination
public void pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfiguration, @NotNull @NotNull java.lang.String webhookPayload) throws WebhookConfigurationValidationExceptionDescription copied from interface:WebhookValidationServiceSend Mocked Integration Object Payload to Destination to validate WebhookConfiguration- Specified by:
pingWebhookDestinationin interfaceWebhookValidationService- Parameters:
webhookConfiguration- WebhookConfigurationwebhookPayload- Mocked Payload of Integration Object- Throws:
WebhookConfigurationValidationException- Validation Exception
-
pingWebhookDestination
public rx.Observable<org.springframework.http.ResponseEntity<java.util.Map>> pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfig, @NotNull @NotNull ItemModel item)Description copied from interface:WebhookValidationServiceSend a test payload to check whether the WebhookConfiguration is working correctly.- Specified by:
pingWebhookDestinationin interfaceWebhookValidationService- Parameters:
webhookConfig- WebhookConfiguration to be testeditem- Item Model instance- Returns:
- response entity
-
-