Class SmtpImapServer

java.lang.Object
net.messagevortex.AbstractDaemon
net.messagevortex.transport.SmtpImapServer
All Implemented Interfaces:
RunningDaemon, Transport, TransportSender

public class SmtpImapServer extends AbstractDaemon implements Transport
  • Constructor Details

    • SmtpImapServer

      public SmtpImapServer(String section) throws IOException

      Creates a comboo of local SMTP and IMAP server as listener for a client.

      Parameters:
      section - the configuration section to be used
      Throws:
      IOException - if unable to bind interfaces
  • Method Details

    • sendMessage

      public void sendMessage(String address, InputStream is)
      Description copied from interface: TransportSender

      sends a message on the transport layer.

      This method is called by the blender layer to send a message.

      Specified by:
      sendMessage in interface TransportSender
      Parameters:
      address - the string representation of the target address on the transport layer
      is - the outputstream providing the message
    • shutdownDaemon

      public void shutdownDaemon()
      Description copied from interface: RunningDaemon

      Shuts this class down.

      This frees all resources and ends all threads for an application or layer shutdown. It is not possible to call start() after running shutdown().

      Specified by:
      shutdownDaemon in interface RunningDaemon
      Overrides:
      shutdownDaemon in class AbstractDaemon