java.lang.Object
i2p.susi.webmail.smtp.SMTPClient.SendExpect
Enclosing class:
SMTPClient

private static class SMTPClient.SendExpectextends Object
A command to send and a result code to expect.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The reply code the server is expected to answer with.
    final String
    The SMTP command to write, without its trailing CRLF.
    final boolean
    True if the command carries credentials, so it is masked in debug logs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SendExpect(String s, int e)
    Creates a command not carrying credentials.
    SendExpect(String s, int e, boolean sen)
    Creates a command, optionally marked as carrying credentials.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • send

      public final String send
      The SMTP command to write, without its trailing CRLF.
    • expect

      public final int expect
      The reply code the server is expected to answer with.
    • sensitive

      public final boolean sensitive
      True if the command carries credentials, so it is masked in debug logs.
  • Constructor Details

    • SendExpect

      public SendExpect(String s, int e)
      Creates a command not carrying credentials.
      Parameters:
      s - the SMTP command to write
      e - the reply code the server is expected to answer with
    • SendExpect

      public SendExpect(String s, int e, boolean sen)
      Creates a command, optionally marked as carrying credentials.
      Parameters:
      s - the SMTP command to write
      e - the reply code the server is expected to answer with
      sen - true if the command contains credentials to mask in debug logs