Package ch.astorm.smtp4j.protocol
Class SmtpTransactionHandler
java.lang.Object
ch.astorm.smtp4j.protocol.SmtpTransactionHandler
Handles the SMTP protocol.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents a message receiver within the SMTP transaction. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandle(BufferedReader input, PrintWriter output, SmtpTransactionHandler.MessageReceiver messageReceiver) Handles the SMTP protocol communication.
-
Method Details
-
handle
public static void handle(BufferedReader input, PrintWriter output, SmtpTransactionHandler.MessageReceiver messageReceiver) throws IOException, SmtpProtocolException Handles the SMTP protocol communication.- Parameters:
input- The input scanner.output- The output writer.messageReceiver- TheMessageReceiver.- Throws:
IOExceptionSmtpProtocolException
-