public class RecipientSpecificationDestinationPair extends Object implements RecipientDestinationMapper
Destination
to one or
more RecipientSpecification
, it is used to configure what to do with
mail sent to the matching mail addresses.Constructor and Description |
---|
RecipientSpecificationDestinationPair() |
Modifier and Type | Method and Description |
---|---|
void |
addRecipientSpecification(RecipientSpecification recipientSpecification) |
Destination |
lookup(Recipient recipient)
Returns the destination of mails sent to this user; or null if it does
not know the recipient.
|
void |
setDestination(Destination destination) |
void |
setRecipientSpecification(RecipientSpecification recipientSpecification) |
void |
setRecipientSpecifications(java.util.List<RecipientSpecification> recipientSpecifications) |
public RecipientSpecificationDestinationPair()
public Destination lookup(Recipient recipient)
RecipientDestinationMapper
lookup
in interface RecipientDestinationMapper
public void addRecipientSpecification(RecipientSpecification recipientSpecification)
public void setRecipientSpecification(RecipientSpecification recipientSpecification)
public void setRecipientSpecifications(java.util.List<RecipientSpecification> recipientSpecifications)
public void setDestination(Destination destination)