Class SmtpTransactionHandler


  • public class SmtpTransactionHandler
    extends java.lang.Object
    Handles the SMTP protocol.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void handle​(java.net.Socket socket, java.io.BufferedReader input, java.io.PrintWriter output, SmtpMessageHandler handler)
      Handles the SMTP protocol communication.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handle

        public static void handle​(java.net.Socket socket,
                                  java.io.BufferedReader input,
                                  java.io.PrintWriter output,
                                  SmtpMessageHandler handler)
                           throws java.io.IOException,
                                  SmtpProtocolException
        Handles the SMTP protocol communication.
        Parameters:
        socket - The socket.
        input - The input scanner.
        output - The output writer.
        handler - The message handler.
        Throws:
        java.io.IOException
        SmtpProtocolException