railo.runtime.net.mail
Class EmailNamePair

java.lang.Object
  extended by railo.runtime.net.mail.EmailNamePair

public final class EmailNamePair
extends Object

represent a email name pair


Method Summary
 String getEmail()
           
 String getName()
           
 boolean hasName()
           
static javax.mail.internet.InternetAddress toInternetAddress(Object emails)
           
static javax.mail.internet.InternetAddress[] toInternetAddresses(Object emails)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toInternetAddress

public static javax.mail.internet.InternetAddress toInternetAddress(Object emails)
                                                             throws MailException,
                                                                    javax.mail.internet.AddressException,
                                                                    UnsupportedEncodingException,
                                                                    PageException
Throws:
MailException
javax.mail.internet.AddressException
UnsupportedEncodingException
PageException

toInternetAddresses

public static javax.mail.internet.InternetAddress[] toInternetAddresses(Object emails)
                                                                 throws MailException,
                                                                        javax.mail.internet.AddressException,
                                                                        UnsupportedEncodingException,
                                                                        PageException
Throws:
MailException
javax.mail.internet.AddressException
UnsupportedEncodingException
PageException

hasName

public boolean hasName()
Returns:
return if in the email name pair also a name is defined

getName

public String getName()
Returns:
returns the name

getEmail

public String getEmail()
Returns:
returns the email

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Railo