Class TestPop3Handler

java.lang.Object
net.messagevortex.transport.pop3.TestPop3Handler
All Implemented Interfaces:
RunningDaemon, Transport, TransportSender

public class TestPop3Handler extends Object implements Transport
  • Constructor Details

    • TestPop3Handler

      public TestPop3Handler(String section) throws IOException

      Constructor starting a POP3 server from the named config section.

      Parameters:
      section - the configuration section to be used
      Throws:
      IOException - if server fails to start
  • Method Details

    • sendMessage

      public void sendMessage(String address, InputStream os) throws IOException
      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
      os - the outputstream providing the message
      Throws:
      IOException - if transport layer was unable to satisfy the request
    • startDaemon

      public final void startDaemon()
      Description copied from interface: RunningDaemon

      Initializes and starts all threads required to run the daemon.

      Specified by:
      startDaemon in interface RunningDaemon
    • stopDaemon

      public void stopDaemon()
      Description copied from interface: RunningDaemon

      Stopps all daemon threads and frees all temporary resources.

      Specified by:
      stopDaemon in interface RunningDaemon
    • 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