Package io.vertigo.social.mail
Record Class Mail
java.lang.Object
java.lang.Record
io.vertigo.social.mail.Mail
- Record Components:
subject- Sujet du mail;replyTo- Addresse de retour (maybe null)fromAddress- Addresse de l'emetteurtoAddresses- Addresses de destinationccAddresses- Addresses en copietextContent- Contenu texthtmlContent- Contenu htmlattachments- Liste des pièces jointes
public record Mail(String subject, String replyTo, String fromAddress, List<String> toAddresses, List<String> ccAddresses, String textContent, String htmlContent, List<io.vertigo.datastore.filestore.model.VFile> attachments)
extends Record
Message à envoyer par mail.
Les adresses email respectent le format RFC822.
Eles sont de la forme
- "user@host.domain"
ou
- "Personal Name invalid input: '<'user@host.domain>"
- Author:
- npiedeloup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.vertigo.datastore.filestore.model.VFile> Returns the value of theattachmentsrecord component.static MailBuilderbuilder()Static method factory for MailBuilderReturns the value of theccAddressesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromAddressrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehtmlContentrecord component.replyTo()Returns the value of thereplyTorecord component.subject()Returns the value of thesubjectrecord component.Returns the value of thetextContentrecord component.Returns the value of thetoAddressesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Mail
public Mail(String subject, String replyTo, String fromAddress, List<String> toAddresses, List<String> ccAddresses, String textContent, String htmlContent, List<io.vertigo.datastore.filestore.model.VFile> attachments) Creates an instance of aMailrecord class.- Parameters:
subject- the value for thesubjectrecord componentreplyTo- the value for thereplyTorecord componentfromAddress- the value for thefromAddressrecord componenttoAddresses- the value for thetoAddressesrecord componentccAddresses- the value for theccAddressesrecord componenttextContent- the value for thetextContentrecord componenthtmlContent- the value for thehtmlContentrecord componentattachments- the value for theattachmentsrecord component
-
-
Method Details
-
builder
Static method factory for MailBuilder- Returns:
- MailBuilder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
replyTo
Returns the value of thereplyTorecord component.- Returns:
- the value of the
replyTorecord component
-
fromAddress
Returns the value of thefromAddressrecord component.- Returns:
- the value of the
fromAddressrecord component
-
toAddresses
Returns the value of thetoAddressesrecord component.- Returns:
- the value of the
toAddressesrecord component
-
ccAddresses
Returns the value of theccAddressesrecord component.- Returns:
- the value of the
ccAddressesrecord component
-
textContent
Returns the value of thetextContentrecord component.- Returns:
- the value of the
textContentrecord component
-
htmlContent
Returns the value of thehtmlContentrecord component.- Returns:
- the value of the
htmlContentrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-