public interface RecipientRewriteTable
Modifier and Type | Interface and Description |
---|---|
static class |
RecipientRewriteTable.ErrorMappingException |
Modifier and Type | Field and Description |
---|---|
static String |
ALIASDOMAIN_PREFIX
The prefix which is used for alias domain mappings
|
static String |
ERROR_PREFIX
The prefix which is used for error mappings
|
static String |
REGEX_PREFIX
The prefix which is used for regex mappings
|
static String |
WILDCARD
The wildcard used for alias domain mappings
|
Modifier and Type | Method and Description |
---|---|
void |
addAddressMapping(String user,
String domain,
String address)
Add address mapping
|
void |
addAliasDomainMapping(String aliasDomain,
String realDomain)
Add aliasDomain mapping
|
void |
addErrorMapping(String user,
String domain,
String error)
Add error mapping
|
void |
addMapping(String user,
String domain,
String mapping)
Add mapping
|
void |
addRegexMapping(String user,
String domain,
String regex)
Add regex mapping
|
Map<String,Collection<String>> |
getAllMappings()
Return a Map which holds all mappings.
|
Collection<String> |
getMappings(String user,
String domain)
Return the mapped MailAddress for the given address.
|
Collection<String> |
getUserDomainMappings(String user,
String domain)
Return the explicit mapping stored for the given user and domain.
|
void |
removeAddressMapping(String user,
String domain,
String address)
Remove address mapping
|
void |
removeAliasDomainMapping(String aliasDomain,
String realDomain)
Remove aliasDomain mapping
|
void |
removeErrorMapping(String user,
String domain,
String error)
Remove error mapping
|
void |
removeMapping(String user,
String domain,
String mapping)
Remove mapping
|
void |
removeRegexMapping(String user,
String domain,
String regex)
Remove regex mapping
|
static final String ERROR_PREFIX
static final String REGEX_PREFIX
static final String ALIASDOMAIN_PREFIX
static final String WILDCARD
Collection<String> getMappings(String user, String domain) throws RecipientRewriteTable.ErrorMappingException, RecipientRewriteTableException
user
- the MailAddressRecipientRewriteTable.ErrorMappingException
- get thrown if an error mapping was foundRecipientRewriteTableException
void addRegexMapping(String user, String domain, String regex) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedregex
- the regex.RecipientRewriteTableException
void removeRegexMapping(String user, String domain, String regex) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedregex
- the regex.RecipientRewriteTableException
void addAddressMapping(String user, String domain, String address) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedaddress
- RecipientRewriteTableException
void removeAddressMapping(String user, String domain, String address) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedaddress
- RecipientRewriteTableException
void addErrorMapping(String user, String domain, String error) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usederror
- the regex.RecipientRewriteTableException
void removeErrorMapping(String user, String domain, String error) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usederror
- RecipientRewriteTableException
Collection<String> getUserDomainMappings(String user, String domain) throws RecipientRewriteTableException
user
- the usernamedomain
- the domainRecipientRewriteTableException
void addMapping(String user, String domain, String mapping) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedmapping
- the mappingRecipientRewriteTableException
void removeMapping(String user, String domain, String mapping) throws RecipientRewriteTableException
user
- the username. Null if no username should be useddomain
- the domain. Null if no domain should be usedmapping
- the mappingRecipientRewriteTableException
Map<String,Collection<String>> getAllMappings() throws RecipientRewriteTableException
RecipientRewriteTableException
void addAliasDomainMapping(String aliasDomain, String realDomain) throws RecipientRewriteTableException
aliasDomain
- the aliasdomain which should be mapped to the realDomainrealDomain
- the realDomainRecipientRewriteTableException
void removeAliasDomainMapping(String aliasDomain, String realDomain) throws RecipientRewriteTableException
aliasDomain
- the aliasdomain which should be mapped to the realDomainrealDomain
- the realDomainRecipientRewriteTableException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.