Class InboundWebhookRestController

java.lang.Object
io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController

@RestController public class InboundWebhookRestController extends Object
  • Constructor Details

    • InboundWebhookRestController

      @Autowired public InboundWebhookRestController(WebhookConnectorRegistry webhookConnectorRegistry)
  • Method Details

    • toResponseEntity

      protected static org.springframework.http.ResponseEntity<?> toResponseEntity(io.camunda.connector.api.inbound.webhook.WebhookHttpResponse webhookHttpResponse)
    • escapeValue

      protected static Object escapeValue(Object value)
    • 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,String> params, jakarta.servlet.http.HttpServletRequest httpServletRequest) throws IOException
      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

      protected org.springframework.http.ResponseEntity<?> buildErrorResponse(Exception e)