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

    Modifier and Type
    Method
    Description
    Reads the next line from the client.
    default void
    reply(int code)
    Replies the specified code to the client.
    void
    reply(int code, String message)
    Replies the specified code and message to the client.
  • Method Details

    • nextLine

      String nextLine() throws SmtpProtocolException
      Reads the next line from the client.
      Throws:
      SmtpProtocolException
    • reply

      void reply(int code, String message)
      Replies the specified code and message to the client.
      Parameters:
      code - The SMTP code.
      message - The message.
    • reply

      default void reply(int code)
      Replies the specified code to the client.
      Parameters:
      code - The SMTP code.