com.hs.mail.smtp.message
Class MailAddress

java.lang.Object
  extended by com.hs.mail.smtp.message.MailAddress
All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Recipient

public class MailAddress
extends Object
implements Serializable, Comparable

Since:
Jun 1, 2010
Author:
Won Chul Doh
See Also:
Serialized Form

Constructor Summary
MailAddress()
           
MailAddress(javax.mail.Address address)
           
MailAddress(String address)
           
MailAddress(String address, boolean strict)
           
 
Method Summary
 int compareTo(Object o)
           
 String getHost()
           
 String getMailbox()
           
 String getUser()
           
 boolean isStrict()
           
protected  void setMailbox(String address)
           
 javax.mail.internet.InternetAddress toInternetAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailAddress

public MailAddress()

MailAddress

public MailAddress(javax.mail.Address address)

MailAddress

public MailAddress(String address,
                   boolean strict)
            throws SmtpException
Throws:
SmtpException

MailAddress

public MailAddress(String address)
            throws SmtpException
Throws:
SmtpException
Method Detail

isStrict

public boolean isStrict()

getMailbox

public String getMailbox()

setMailbox

protected void setMailbox(String address)

getUser

public String getUser()

getHost

public String getHost()

toInternetAddress

public javax.mail.internet.InternetAddress toInternetAddress()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2011. All Rights Reserved.