public abstract class Address
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doAddMailboxesTo(java.util.List<Mailbox> results)
Adds any mailboxes represented by this address into the given List.
|
java.lang.String |
getDisplayString()
Formats the address as a human readable string, not including the route.
|
abstract java.lang.String |
getDisplayString(boolean includeRoute)
Formats the address as a human readable string, not including the route.
|
abstract java.lang.String |
getEncodedString()
Returns a string representation of this address that can be used for
transport purposes.
|
static Address |
parse(java.lang.String rawAddressString)
Parses the specified raw string into an address.
|
java.lang.String |
toString() |
protected abstract void doAddMailboxesTo(java.util.List<Mailbox> results)
public final java.lang.String getDisplayString()
getDisplayString(boolean)
public abstract java.lang.String getDisplayString(boolean includeRoute)
includeRoute
- true
if the route should be included if it
exists, false
otherwise.public abstract java.lang.String getEncodedString()
public static Address parse(java.lang.String rawAddressString)
rawAddressString
- string to parse.Address
object for the specified string.java.lang.IllegalArgumentException
- if the raw string does not represent a single address.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004-2012. All Rights Reserved.