Package de.dlr.proseo.notification.rest
Class 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).
- Author:
- Ernst Melchinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsendNotification(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)
-
Constructor Details
-
SendManager
public SendManager()
-
-
Method Details
-
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)- Parameters:
restMessage- a REST message- Returns:
- a message body representing the response from the sending operation (only in case of HTTP(S) endpoints) or null
-