Enum Class MailAction

java.lang.Object
java.lang.Enum<MailAction>
dev.gmitch215.bytebox.MailAction
All Implemented Interfaces:
Serializable, Comparable<MailAction>, Constable

public enum MailAction extends Enum<MailAction>
What a Mail handler did with a message.
Since:
1.0.0
  • Enum Constant Details

    • NONE

      public static final MailAction NONE
      Nothing yet. A handler that returns in this state raises rather than dropping silently.
    • FORWARDED

      public static final MailAction FORWARDED
      Sent on to a verified destination address.
    • REPLIED

      public static final MailAction REPLIED
      Answered in the same SMTP session.
    • REJECTED

      public static final MailAction REJECTED
      Refused with a permanent SMTP error.
    • DROPPED

      public static final MailAction DROPPED
      Discarded on purpose.
  • Method Details

    • values

      public static MailAction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MailAction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null