Class InboundWebhookRestController
java.lang.Object
io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController
-
Constructor Summary
ConstructorsConstructorDescriptionInboundWebhookRestController(WebhookConnectorRegistry webhookConnectorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<?> protected static ObjectescapeValue(Object value) org.springframework.http.ResponseEntity<?> inbound(String context, Map<String, String> headers, byte[] bodyAsByteArray, Map<String, String> params, jakarta.servlet.http.HttpServletRequest httpServletRequest) protected static org.springframework.http.ResponseEntity<?> toResponseEntity(io.camunda.connector.api.inbound.webhook.WebhookHttpResponse webhookHttpResponse) protected org.springframework.http.ResponseEntity<?> verify(io.camunda.connector.api.inbound.webhook.WebhookConnectorExecutable connectorHook, io.camunda.connector.api.inbound.webhook.WebhookProcessingPayload payload)
-
Constructor Details
-
InboundWebhookRestController
-
-
Method Details
-
toResponseEntity
protected static org.springframework.http.ResponseEntity<?> toResponseEntity(io.camunda.connector.api.inbound.webhook.WebhookHttpResponse webhookHttpResponse) -
escapeValue
-
inbound
@RequestMapping(method={GET,POST,PUT,DELETE}, path="/inbound/{context}") public org.springframework.http.ResponseEntity<?> inbound(@PathVariable("context") String context, @RequestHeader Map<String, String> headers, @RequestBody(required=false) byte[] bodyAsByteArray, @RequestParam(required=false) Map<String, throws IOExceptionString> params, jakarta.servlet.http.HttpServletRequest httpServletRequest) - Throws:
IOException
-
verify
protected org.springframework.http.ResponseEntity<?> verify(io.camunda.connector.api.inbound.webhook.WebhookConnectorExecutable connectorHook, io.camunda.connector.api.inbound.webhook.WebhookProcessingPayload payload) -
buildErrorResponse
-