|
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
org.apache.james.mime4j.field.address.Group
public class Group
A named group of zero or more mailboxes.
Constructor Summary | |
---|---|
Group(String name,
Collection<Mailbox> mailboxes)
|
|
Group(String name,
Mailbox... mailboxes)
|
|
Group(String name,
MailboxList mailboxes)
|
Method Summary | |
---|---|
protected void |
doAddMailboxesTo(List<Mailbox> results)
Adds any mailboxes represented by this address into the given List. |
String |
getDisplayString(boolean includeRoute)
Formats the address as a human readable string, not including the route. |
String |
getEncodedString()
Returns a string representation of this address that can be used for transport purposes. |
MailboxList |
getMailboxes()
Returns the mailboxes in this group. |
String |
getName()
Returns the group name. |
static Group |
parse(String rawGroupString)
Parses the specified raw string into a group address. |
Methods inherited from class org.apache.james.mime4j.field.address.Address |
---|
getDisplayString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Group(String name, Mailbox... mailboxes)
name
- The group name.mailboxes
- The mailboxes in this group.public Group(String name, Collection<Mailbox> mailboxes)
name
- The group name.mailboxes
- The mailboxes in this group.public Group(String name, MailboxList mailboxes)
name
- The group name.mailboxes
- The mailboxes in this group.Method Detail |
---|
public static Group parse(String rawGroupString)
rawGroupString
- string to parse.
Group
object for the specified string.
IllegalArgumentException
- if the raw string does not represent a single group address.public String getName()
public MailboxList getMailboxes()
public String getDisplayString(boolean includeRoute)
Address
getDisplayString
in class Address
includeRoute
- true
if the route should be included if it
exists, false
otherwise.
public String getEncodedString()
Address
getEncodedString
in class Address
protected void doAddMailboxesTo(List<Mailbox> results)
Address
doAddMailboxesTo
in class Address
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |