com.aspose.email
Class MailAddress

java.lang.Object
  extended by com.aspose.email.MailAddress
All Implemented Interfaces:
IMailAddress

public class MailAddress
extends Object
implements IMailAddress

Represents the address of a message.


Constructor Summary
MailAddress(String address)
           Initializes a new instance of the MailAddress class.
MailAddress(String address, boolean ignoreSmtpCheck)
           Initializes a new instance of the MailAddress class.
MailAddress(String address, String displayName)
           Initializes a new instance of the MailAddress class.
MailAddress(String address, String displayName, boolean ignoreSmtpCheck)
           Initializes a new instance of the MailAddress class.
MailAddress(String address, String displayName, Charset displayNameEncoding)
           
MailAddress(String address, String displayName, Charset displayNameEncoding, boolean ignoreSmtpCheck)
           
 
Method Summary
 void add(MailAddress address)
          Deprecated. 
 void add(String address)
          Deprecated. 
 boolean equals(Object value)
           
 MailAddress get_Item(int i)
           
 String getAddress()
           Gets or sets the e-mail address.
 int getCount()
           
 String getDisplayName()
           Gets or sets a display name.
 String getHost()
           Gets the host portion of the address.
 String getUser()
           Gets the username.
 int hashCode()
           
 void setAddress(String value)
           
 void setDisplayName(String value)
           
static MailAddress toMailAddress(MailAddressCollection addresses)
           
static MailAddress toMailAddress(String address)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailAddress

public MailAddress(String address,
                   boolean ignoreSmtpCheck)

Initializes a new instance of the MailAddress class.

Parameters:
address - The mail address.
ignoreSmtpCheck - if set to true then SMTP check will be omitted.

MailAddress

public MailAddress(String address,
                   String displayName,
                   boolean ignoreSmtpCheck)

Initializes a new instance of the MailAddress class.

Parameters:
address - The mail address.
displayName - The display name.
ignoreSmtpCheck - if set to true then SMTP check will be omitted.

MailAddress

public MailAddress(String address,
                   String displayName,
                   Charset displayNameEncoding)

MailAddress

public MailAddress(String address,
                   String displayName,
                   Charset displayNameEncoding,
                   boolean ignoreSmtpCheck)

MailAddress

public MailAddress(String address)

Initializes a new instance of the MailAddress class.

Parameters:
address - The mail address.

MailAddress

public MailAddress(String address,
                   String displayName)

Initializes a new instance of the MailAddress class.

Parameters:
address - The mail address.
displayName - The display name.
Method Detail

getDisplayName

public String getDisplayName()

Gets or sets a display name.

Value: A String that contains the display name.

Specified by:
getDisplayName in interface IMailAddress

setDisplayName

public void setDisplayName(String value)
Specified by:
setDisplayName in interface IMailAddress

getUser

public String getUser()

Gets the username.

Value: A String that contains the user name.


getHost

public String getHost()

Gets the host portion of the address.

Value: A String that contains the name of the host.


getAddress

public String getAddress()

Gets or sets the e-mail address.

Value: A String that contains the e-mail address.

Specified by:
getAddress in interface IMailAddress

setAddress

public void setAddress(String value)
Specified by:
setAddress in interface IMailAddress

getCount

public int getCount()

get_Item

public MailAddress get_Item(int i)

toMailAddress

public static MailAddress toMailAddress(String address)

toMailAddress

public static MailAddress toMailAddress(MailAddressCollection addresses)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object value)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

add

@Deprecated
public void add(MailAddress address)
Deprecated. 


add

@Deprecated
public void add(String address)
Deprecated. 



Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.