Package ch.astorm.jotlmsg
Class OutlookMessageRecipient
java.lang.Object
ch.astorm.jotlmsg.OutlookMessageRecipient
Represents a recipient.
- Author:
- Cedric Tabin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the type of recipient. -
Constructor Summary
ConstructorsConstructorDescriptionOutlookMessageRecipient(OutlookMessageRecipient.Type type, String email) Creates a newOutlookMessageRecipientwith the giventypeandemailand a null name.OutlookMessageRecipient(OutlookMessageRecipient.Type type, String email, String name) Creates a newOutlookMessageRecipientwith the specified parameters. -
Method Summary
-
Constructor Details
-
OutlookMessageRecipient
Creates a newOutlookMessageRecipientwith the giventypeandemailand a null name.- Parameters:
type- The type.email- The email or null.
-
OutlookMessageRecipient
Creates a newOutlookMessageRecipientwith the specified parameters.- Parameters:
type- The type.email- The email or null.name- The name or null.
-
-
Method Details
-
getType
Returns the type of recipient.- Returns:
- The type of recipient.
-
getName
Defines the name of the recipient. This value may be null. -
setName
-
getEmail
Defines the email of the recipient. This value may be null. -
setEmail
-
getAddress
public jakarta.mail.Address getAddress() throws jakarta.mail.internet.AddressExceptionReturns a newAddressfrom the email of this recipient. If the email is not defined, this method returns null.- Returns:
- A new
InternetAddress. - Throws:
jakarta.mail.internet.AddressException- If the email is not valid.
-