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:
  • Field Details

  • Constructor Details

    • MailHeader

      @Deprecated(forRemoval=true) public MailHeader(@NotNull @NotNull String recipients)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 5.2.601 - use MailHeader.Builder instead
      The constructor for the mail header. You have to supply at least one recipient or an empty string. If you want to have multiple recipients, provide them in a semicolon separated list.
      Parameters:
      recipients - A semicolon-separated list of recipients.
      Throws:
      IllegalArgumentException - if the domain of a recipient does not conform to RFC 3490
      Since:
      4.1.10
  • 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