|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(List<Mailbox> results)
Adds any mailboxes represented by this address into the given List. |
String |
getDisplayString()
Formats the address as a human readable string, not including the route. |
abstract String |
getDisplayString(boolean includeRoute)
Formats the address as a human readable string, not including the route. |
abstract String |
getEncodedString()
Returns a string representation of this address that can be used for transport purposes. |
static Address |
parse(String rawAddressString)
Parses the specified raw string into an address. |
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(List<Mailbox> results)
public final String getDisplayString()
getDisplayString(boolean)
public abstract String getDisplayString(boolean includeRoute)
includeRoute
- true
if the route should be included if it
exists, false
otherwise.
public abstract String getEncodedString()
public static Address parse(String rawAddressString)
rawAddressString
- string to parse.
Address
object for the specified string.
IllegalArgumentException
- if the raw string does not represent a single address.public String toString()
toString
in class Object
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |