Class Address

java.lang.Object
org.apache.james.mime4j.dom.address.Address
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Group, Mailbox

public abstract class Address extends Object implements Serializable
The abstract base for classes that represent RFC2822 addresses. This includes groups and mailboxes.
See Also:
  • Field Details

  • Constructor Details

    • Address

      public Address()
  • Method Details

    • addMailboxesTo

      final void addMailboxesTo(List<Mailbox> results)
      Adds any mailboxes represented by this address into the given List. Note that this method has default (package) access, so a doAddMailboxesTo method is needed to allow the behavior to be overridden by subclasses.
    • doAddMailboxesTo

      protected abstract void doAddMailboxesTo(List<Mailbox> results)
      Adds any mailboxes represented by this address into the given List. Must be overridden by concrete subclasses.