Package de.espirit.firstspirit.access
Class MailHeader
java.lang.Object
de.espirit.firstspirit.access.MailHeader
- All Implemented Interfaces:
Serializable
A
Serializable object of the mail header- Since:
- 4.1.10
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @NotNull StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.replyTo(String)andgetReplyTo()instead@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.sender(String)andgetSender()instead -
Constructor Summary
ConstructorsConstructorDescriptionMailHeader(@NotNull String recipients) Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builderinstead -
Method Summary
Modifier and TypeMethodDescription@NotNull StringA semicolon-separated list of blind carbon copy (BCC) recipients.static @NotNull MailHeader.BuilderCreate a new builder for aMailHeader.@NotNull StringA semicolon-separated list of carbon copy (CC) recipients.@NotNull StringA semicolon-separated list of recipients.@Nullable StringA semicolon-separated list of reply addresses.@Nullable StringThe technical sender of the e-mail.
-
Field Details
-
recipients
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.recipient(String)andgetRecipients()insteadA semicolon-separated list of recipients.- Since:
- 4.1.10
-
sender
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.sender(String)andgetSender()insteadThe sender of the mail.- Since:
- 4.1.10
-
replyTo
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.Builder.replyTo(String)andgetReplyTo()insteadA semicolon-separated list of reply-recipients.- Since:
- 4.1.10
-
-
Constructor Details
-
MailHeader
Deprecated, for removal: This API element is subject to removal in a future version.since 5.2.601 - useMailHeader.BuilderinsteadThe 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
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
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
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
The technical sender of the e-mail.- Returns:
- the sender, may be
nullif unset. - Since:
- 5.2.601
-
getReplyTo
A semicolon-separated list of reply addresses.- Returns:
- the reply addresses. May be
nullif unset or empty if no valid addresses have been specified. - Since:
- 5.2.601
-
getBuilder
Create a new builder for aMailHeader.- Returns:
- the new builder
- Since:
- 5.2.601
-
MailHeader.Builder.recipient(String)andgetRecipients()instead