Class WebhookService

java.lang.Object
de.bytestore.hostinger.system.service.WebhookService

@Service @Component public class WebhookService extends Object
Service class for handling webhook-related operations. Provides functionality to execute, manage, and register webhooks.
  • Constructor Details

    • WebhookService

      public WebhookService()
  • Method Details

    • execute

      public void execute(Class classIO, String listenerIO, JSONStatusMessage messageIO)
      Executes webhooks for the specified class and listener with the given message.
      Parameters:
      classIO - The class for the event.
      listenerIO - The listener for the event.
      messageIO - The JSON status message.
    • registerEventType

      public void registerEventType(Class classIO, String listenerIO)
      Registers a new event type by combining the class name and listener name. If the event type is already registered, an error message will be logged.
      Parameters:
      classIO - the Class object representing the event source
      listenerIO - the name of the listener associated with the event