Class DefaultWebhookValidationService
java.lang.Object
de.hybris.platform.webhookservices.service.impl.DefaultWebhookValidationService
- All Implemented Interfaces:
WebhookValidationService
Default implementation of WebhookValidationService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebhookValidationService(@NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull OutboundServiceFacade outboundServiceFacade) Deprecated, for removal: This API element is subject to removal in a future version.DefaultWebhookValidationService(@NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull CloudEventHeadersService cloudEventHeadersService) Deprecated, for removal: This API element is subject to removal in a future version.Use theDefaultWebhookValidationService(RemoteSystemClient, OutboundServiceFacade, CloudEventHeadersService)constructor instead.DefaultWebhookValidationService(@NotNull RemoteSystemClient remoteClient, @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull CloudEventHeadersService cloudEventHeadersService) Instantiates theDefaultWebhookValidationService -
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
-
Constructor Details
-
DefaultWebhookValidationService
@Deprecated(since="2205", forRemoval=true) public DefaultWebhookValidationService(@NotNull @NotNull IntegrationRestTemplateFactory integrationRestTemplateFactory, @NotNull @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull @NotNull CloudEventHeadersService cloudEventHeadersService) Deprecated, for removal: This API element is subject to removal in a future version.Use theDefaultWebhookValidationService(RemoteSystemClient, OutboundServiceFacade, CloudEventHeadersService)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 endpointcloudEventHeadersService- to generate CloudEvent headers
-
DefaultWebhookValidationService
@Deprecated(since="2205", 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.Use theDefaultWebhookValidationService(RemoteSystemClient, OutboundServiceFacade, CloudEventHeadersService)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 RemoteSystemClient remoteClient, @NotNull @NotNull OutboundServiceFacade outboundServiceFacade, @NotNull @NotNull CloudEventHeadersService cloudEventHeadersService) Instantiates theDefaultWebhookValidationService- Parameters:
remoteClient- Implementation of the remote system clientoutboundServiceFacade- OutboundServiceFacade builds the payload and to integrate with restful endpointcloudEventHeadersService- to generate CloudEvent headers
-
-
Method Details
-
pingWebhookDestination
public void pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfiguration, @NotNull @NotNull String webhookPayload) throws WebhookConfigurationValidationException Description 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<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
-
DefaultWebhookValidationService(RemoteSystemClient, OutboundServiceFacade, CloudEventHeadersService)constructor instead.