|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.mail.MailAddress
public class MailAddress
Specifies an email address.
Method Summary | |
---|---|
static MailAddress |
eMail(String email)
Gets a new instance of MailAddress . |
boolean |
equals(Object o)
|
javax.mail.internet.InternetAddress |
getAuthorizedInternetAddress()
Gets from this defined mail address the corresponding authorized InternetAddress
according to the ruled defined by MailUtil.getAuthorizedEmailAddress(String, String) . |
String |
getEmail()
Gets the email. |
String |
getName()
Gets the name. |
int |
hashCode()
|
MailAddress |
withName(String name)
Permits to specify the name of the person or organization linked to the email. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MailAddress eMail(String email)
MailAddress
.
email
- the email.
MailAddress
.public MailAddress withName(String name)
name
- the functional name associated to the email. If the name is not defined, then an
empty string is taken into account.
public String getEmail()
public String getName()
public javax.mail.internet.InternetAddress getAuthorizedInternetAddress() throws UnsupportedEncodingException, javax.mail.internet.AddressException
InternetAddress
according to the ruled defined by MailUtil.getAuthorizedEmailAddress(String, String)
.
MailUtil.getAuthorizedEmailAddress(String, String)
.
UnsupportedEncodingException
javax.mail.internet.AddressException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |