Package ch.astorm.smtp4j.protocol
Class SmtpTransactionHandler
java.lang.Object
ch.astorm.smtp4j.protocol.SmtpTransactionHandler
Handles the SMTP protocol.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandle(Socket socket, BufferedReader input, PrintWriter output, SmtpMessageHandler handler) Handles the SMTP protocol communication.
-
Method Details
-
handle
public static void handle(Socket socket, BufferedReader input, PrintWriter output, SmtpMessageHandler handler) throws IOException, SmtpProtocolException Handles the SMTP protocol communication.- Parameters:
socket- The socket.input- The input scanner.output- The output writer.handler- The message handler.- Throws:
IOExceptionSmtpProtocolException
-