public class MailContact
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MailContact.Type
This class specifies all possible roles of the mail contact such as the sender,
direct recipient, carbon copy (CC) recipient or blind carbon copy (BCC) recipient.
|
Constructor and Description |
---|
MailContact(MailContact.Type contactType)
Creates a new instance of the MailContact class.
|
MailContact(MailContact.Type contactType,
java.lang.String address)
Creates a new instance of the MailContact class by its type and address.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the address of the contact.
|
java.lang.String |
getName()
Returns the name of the contact.
|
MailContact.Type |
getType()
Returns the type of the contact.
|
void |
setAddress(java.lang.String address)
Sets the address of the contact.
|
void |
setName(java.lang.String name)
Sets the name of the contact.
|
void |
setType(MailContact.Type type)
Specifies the type of the contact.
|
public MailContact(MailContact.Type contactType)
contactType
- Defines the type of the mail contact such as the sender,
direct recipient, carbon copy (CC) recipient or blind carbon copy (BCC) recipient.public MailContact(MailContact.Type contactType, java.lang.String address)
contactType
- Defines the type of the mail contact such as the sender,
direct recipient, carbon copy (CC) recipient or blind carbon copy (BCC) recipient.address
- Is the e-mail address or the inbound name. The address format is [address type][e-mail address].
For example, SMTP:M@X.COM.public java.lang.String getName()
public void setName(java.lang.String name)
name
- Is the e-mail adress or the inbound name.public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- Is the e-mail address. The address format is [address type][e-mail address].
For example, SMTP:M@X.COM.public MailContact.Type getType()
MailContact.Type
public void setType(MailContact.Type type)
type
- Is one of the MailContact.Type
constants.