Package ch.astorm.smtp4j.protocol
Class SmtpTransactionHandler
- java.lang.Object
-
- ch.astorm.smtp4j.protocol.SmtpTransactionHandler
-
public class SmtpTransactionHandler extends java.lang.ObjectHandles the SMTP protocol.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidhandle(java.net.Socket socket, java.io.BufferedReader input, java.io.PrintWriter output, SmtpMessageHandler handler)Handles the SMTP protocol communication.
-
-
-
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, SmtpProtocolExceptionHandles the SMTP protocol communication.- Parameters:
socket- The socket.input- The input scanner.output- The output writer.handler- The message handler.- Throws:
java.io.IOExceptionSmtpProtocolException
-
-