Package ch.astorm.smtp4j.protocol
Class DefaultSmtpTransactionHandler
java.lang.Object
ch.astorm.smtp4j.protocol.DefaultSmtpTransactionHandler
- All Implemented Interfaces:
SmtpTransactionHandler,AutoCloseable
public class DefaultSmtpTransactionHandler
extends Object
implements AutoCloseable, SmtpTransactionHandler
Handles the SMTP protocol.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents a message receiver within the SMTP transaction. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSmtpTransactionHandler(SmtpServer smtpServer, DefaultSmtpTransactionHandler.MessageReceiver messageReceiver) -
Method Summary
-
Constructor Details
-
DefaultSmtpTransactionHandler
public DefaultSmtpTransactionHandler(SmtpServer smtpServer, DefaultSmtpTransactionHandler.MessageReceiver messageReceiver)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
execute
Handles the SMTP protocol communication with the givensocket.- Specified by:
executein interfaceSmtpTransactionHandler- Parameters:
socket- The socket.- Throws:
IOExceptionSmtpProtocolException
-