Interface WebhookClient.Callback

Enclosing class:
WebhookClient

public static interface WebhookClient.Callback
An interface for handling webhook execution responses.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(int statusCode, String errorMessage)
    Called when the webhook execution encounters an error.
    void
    onSuccess(String response)
    Called when the webhook execution is successful.
  • Method Details

    • onSuccess

      void onSuccess(String response)
      Called when the webhook execution is successful.
      Parameters:
      response - The response received from the server.
    • onFailure

      void onFailure(int statusCode, String errorMessage)
      Called when the webhook execution encounters an error.
      Parameters:
      statusCode - The HTTP status code indicating the type of error.
      errorMessage - The error message received from the server.