Package ch.astorm.smtp4j.auth
Interface SmtpExchangeHandler
public interface SmtpExchangeHandler
Some
SmtpAuthenticatorHandler requires multiple exchanges between the server
and the client. This interface provides simple methods to read-write between them.-
Method Summary
-
Method Details
-
nextLine
Reads the next line from the client.- Throws:
SmtpProtocolException
-
reply
Replies the specifiedcodeandmessageto the client.- Parameters:
code- The SMTP code.message- The message.
-
reply
default void reply(int code) Replies the specifiedcodeto the client.- Parameters:
code- The SMTP code.
-