|
||||||||||
| 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(java.lang.String name,
java.util.Collection<Mailbox> mailboxes)
|
|
Group(java.lang.String name,
Mailbox... mailboxes)
|
|
Group(java.lang.String name,
MailboxList mailboxes)
|
|
| Method Summary | |
|---|---|
protected void |
doAddMailboxesTo(java.util.List<Mailbox> results)
Adds any mailboxes represented by this address into the given List. |
java.lang.String |
getDisplayString(boolean includeRoute)
Formats the address as a human readable string, not including the route. |
java.lang.String |
getEncodedString()
Returns a string representation of this address that can be used for transport purposes. |
MailboxList |
getMailboxes()
Returns the mailboxes in this group. |
java.lang.String |
getName()
Returns the group name. |
static Group |
parse(java.lang.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(java.lang.String name,
Mailbox... mailboxes)
name - The group name.mailboxes - The mailboxes in this group.
public Group(java.lang.String name,
java.util.Collection<Mailbox> mailboxes)
name - The group name.mailboxes - The mailboxes in this group.
public Group(java.lang.String name,
MailboxList mailboxes)
name - The group name.mailboxes - The mailboxes in this group.| Method Detail |
|---|
public static Group parse(java.lang.String rawGroupString)
rawGroupString - string to parse.
Group object for the specified string.
java.lang.IllegalArgumentException - if the raw string does not represent a single group address.public java.lang.String getName()
public MailboxList getMailboxes()
public java.lang.String getDisplayString(boolean includeRoute)
Address
getDisplayString in class AddressincludeRoute - true if the route should be included if it
exists, false otherwise.
public java.lang.String getEncodedString()
Address
getEncodedString in class Addressprotected void doAddMailboxesTo(java.util.List<Mailbox> results)
Address
doAddMailboxesTo in class Address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||