Modifier and Type | Field and Description |
---|---|
static AddressFormatter |
DEFAULT |
Modifier | Constructor and Description |
---|---|
protected |
AddressFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
encode(Group group) |
String |
encode(Mailbox mailbox) |
void |
encode(StringBuilder sb,
Address address)
Returns a string representation of this address that can be used for
transport purposes.
|
void |
encode(StringBuilder sb,
Group group) |
void |
encode(StringBuilder sb,
Mailbox mailbox) |
String |
format(Group group,
boolean includeRoute) |
String |
format(Mailbox mailbox,
boolean includeRoute) |
void |
format(StringBuilder sb,
Address address,
boolean includeRoute)
Formats the address as a human readable string, not including the route.
|
void |
format(StringBuilder sb,
Group group,
boolean includeRoute) |
void |
format(StringBuilder sb,
Mailbox mailbox,
boolean includeRoute) |
public static final AddressFormatter DEFAULT
public void format(StringBuilder sb, Address address, boolean includeRoute)
includeRoute
- true
if the route should be included if it
exists, false
otherwise.public void encode(StringBuilder sb, Address address)
public void format(StringBuilder sb, Mailbox mailbox, boolean includeRoute)
public void encode(StringBuilder sb, Mailbox mailbox)
public void format(StringBuilder sb, Group group, boolean includeRoute)
public void encode(StringBuilder sb, Group group)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.