Class MailHeader

java.lang.Object
de.espirit.firstspirit.access.MailHeader
All Implemented Interfaces:
Serializable

public class MailHeader extends Object implements Serializable
A Serializable object of the mail header
Since:
4.1.10
See Also:
  • Method Details

    • getRecipients

      @NotNull public @NotNull String getRecipients()
      A semicolon-separated list of recipients.
      Returns:
      the recipients. May be empty if no valid recipients have been specified, but never null.
      Since:
      5.2.601
    • getCCRecipients

      @NotNull public @NotNull String getCCRecipients()
      A semicolon-separated list of carbon copy (CC) recipients.
      Returns:
      the carbon copy (CC) recipients. May be empty if no valid recipients have been specified, but never null.
      Since:
      5.2.220702
    • getBCCRecipients

      @NotNull public @NotNull String getBCCRecipients()
      A semicolon-separated list of blind carbon copy (BCC) recipients.
      Returns:
      the blind carbon copy (BCC) recipients. May be empty if no valid recipients have been specified, but never null.
      Since:
      5.2.220702
    • getSender

      @Nullable public @Nullable String getSender()
      The technical sender of the e-mail.
      Returns:
      the sender, may be null if unset.
      Since:
      5.2.601
    • getReplyTo

      @Nullable public @Nullable String getReplyTo()
      A semicolon-separated list of reply addresses.
      Returns:
      the reply addresses. May be null if unset or empty if no valid addresses have been specified.
      Since:
      5.2.601
    • getBuilder

      @NotNull public static @NotNull MailHeader.Builder getBuilder()
      Create a new builder for a MailHeader.
      Returns:
      the new builder
      Since:
      5.2.601