|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.mime4j.field.address.Address
public abstract class Address
The abstract base for classes that represent RFC2822 addresses. This includes groups and mailboxes.
Constructor Summary | |
---|---|
Address()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Address()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |