public class Address extends NativeObject
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Address> |
addressesWithNonEncodedRFC822String(java.lang.String nonEncodedRFC822String)
Parses a string that contains an addresses encoded following RFC 822 rules and create a
corresponding list of addresses.
|
static java.util.List<Address> |
addressesWithRFC822String(java.lang.String rfc822String)
Parses a string that contains an addresses encoded following RFC 822 rules and create a
corresponding list of addresses.
|
static Address |
addressWithDisplayName(java.lang.String displayName,
java.lang.String mailbox)
Creates an address with the given display name and mailbox.
|
static Address |
addressWithMailbox(java.lang.String mailbox)
Creates an address with only a mailbox.
|
static Address |
addressWithNonEncodedRFC822String(java.lang.String nonEncodedRFC822String)
Parses a string that contains an address encoded following RFC 822 rules and create a
corresponding address.
|
static Address |
addressWithRFC822String(java.lang.String rfc822String)
Parses a string that contains an address encoded following RFC 822 rules and create a
corresponding address.
|
java.lang.String |
displayName()
Returns the display name.
|
java.lang.String |
mailbox()
Returns the mailbox.
|
java.lang.String |
nonEncodedRFC822String()
Returns the address encoded using RFC 822.
|
static java.lang.String |
nonEncodedRFC822StringForAddresses(java.util.List<Address> addresses)
Returns the given list of addresses encoded using RFC 822.
|
java.lang.String |
RFC822String()
Returns the address encoded using RFC 822.
|
static java.lang.String |
RFC822StringForAddresses(java.util.List<Address> addresses)
Returns the given list of addresses encoded using RFC 822.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name.
|
void |
setMailbox(java.lang.String address)
Sets the mailbox.
|
clone, finalize, initWithNative, readObject, toString, writeObject
public static Address addressWithDisplayName(java.lang.String displayName, java.lang.String mailbox)
public static Address addressWithMailbox(java.lang.String mailbox)
public static Address addressWithRFC822String(java.lang.String rfc822String)
public static Address addressWithNonEncodedRFC822String(java.lang.String nonEncodedRFC822String)
public static java.util.List<Address> addressesWithRFC822String(java.lang.String rfc822String)
public static java.util.List<Address> addressesWithNonEncodedRFC822String(java.lang.String nonEncodedRFC822String)
public static java.lang.String RFC822StringForAddresses(java.util.List<Address> addresses)
public static java.lang.String nonEncodedRFC822StringForAddresses(java.util.List<Address> addresses)
public java.lang.String displayName()
public void setDisplayName(java.lang.String displayName)
public java.lang.String mailbox()
public void setMailbox(java.lang.String address)
public java.lang.String RFC822String()
public java.lang.String nonEncodedRFC822String()