Klasse SendManager

java.lang.Object
de.dlr.proseo.notification.rest.SendManager

@Component public class SendManager extends Object
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
  • Konstruktordetails

    • SendManager

      public SendManager()
  • Methodendetails

    • sendNotification

      public Object sendNotification(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)
      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