public class RecipientSpecificationFactory
extends Object
RecipientSpecification
instance.Constructor and Description |
---|
RecipientSpecificationFactory() |
Modifier and Type | Method and Description |
---|---|
RecipientSpecification |
create(String mailbox)
Given a mailbox address supplied as a string, it creates a corresponding
RecipientSpecification , either a specification which requires a
specific case insensitive local part combined with a specific remote
part, or a GlobalPostmasterSpecification or a
DomainPostmasterSpecification . |
public RecipientSpecification create(String mailbox) throws IllegalArgumentException
RecipientSpecification
, either a specification which requires a
specific case insensitive local part combined with a specific remote
part, or a GlobalPostmasterSpecification
or a
DomainPostmasterSpecification
.IllegalArgumentException
- if the syntax of the supplied mailbox is invalid.