Package ch.astorm.smtp4j.protocol
Class SmtpTransactionHandler
java.lang.Object
ch.astorm.smtp4j.protocol.SmtpTransactionHandler
- All Implemented Interfaces:
AutoCloseable
Handles the SMTP protocol.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents a message receiver within the SMTP transaction. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static voidhandle(SmtpServer smtpServer, Socket socket, SmtpTransactionHandler.MessageReceiver messageReceiver) Handles the SMTP protocol communication.
-
Method Details
-
handle
public static void handle(SmtpServer smtpServer, Socket socket, SmtpTransactionHandler.MessageReceiver messageReceiver) throws IOException, SmtpProtocolException Handles the SMTP protocol communication.- Parameters:
smtpServer- The SMTP server.socket- The Socket.messageReceiver- TheMessageReceiver.- Throws:
IOExceptionSmtpProtocolException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-