Class WebhookService
java.lang.Object
de.bytestore.hostinger.system.service.WebhookService
Service class for handling webhook-related operations.
Provides functionality to execute, manage, and register webhooks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Class classIO, String listenerIO, JSONStatusMessage messageIO) Executes webhooks for the specified class and listener with the given message.voidregisterEventType(Class classIO, String listenerIO) Registers a new event type by combining the class name and listener name.
-
Constructor Details
-
WebhookService
public WebhookService()
-
-
Method Details
-
execute
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
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 sourcelistenerIO- the name of the listener associated with the event
-