Package de.dlr.proseo.notification.rest
Klasse SendManager
java.lang.Object
de.dlr.proseo.notification.rest.SendManager
This SendManager class is responsible for preparing and sending messages either as HTTP requests or emails. It analyzes the
attributes of a given REST message and determines the appropriate sending protocol based on the message's endpoint. The class
supports sending messages via HTTP, HTTPS, or email (MAIL).
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungsendNotification
(RestMessage restMessage) Evaluate the REST message attributes, parses and validates the message content, formats it where necessary, and delegates the sending either to the ServiceConnection class (HTTP/HTTPs) or the ServiceMail class (MAIL)
-
Konstruktordetails
-
SendManager
public SendManager()
-
-
Methodendetails
-
sendNotification
Evaluate the REST message attributes, parses and validates the message content, formats it where necessary, and delegates the sending either to the ServiceConnection class (HTTP/HTTPs) or the ServiceMail class (MAIL)- Parameter:
restMessage
- a REST message- Gibt zurück:
- a message body representing the response from the sending operation (only in case of HTTP(S) endpoints) or null
-