public class XMLRecipientRewriteTable extends AbstractRecipientRewriteTable
RecipientRewriteTable.ErrorMappingException
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD
Constructor and Description |
---|
XMLRecipientRewriteTable() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMappingInternal(String user,
String domain,
String mapping)
Add new mapping
|
protected void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration arg0)
Override to handle config
|
protected Map<String,Collection<String>> |
getAllMappingsInternal()
Return a Map which holds all Mappings
|
protected Collection<String> |
getUserDomainMappingsInternal(String user,
String domain)
Return Collection of all mappings for the given username and domain
|
protected String |
mapAddressInternal(String user,
String domain)
Override to map virtual recipients to real recipients, both local and
non-local.
|
protected void |
removeMappingInternal(String user,
String domain,
String mapping)
Remove mapping
|
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, getAllMappings, getFixedDomain, getFixedUser, getLogger, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setDomainList, setLog, setMappingLimit, setRecursiveMapping
protected void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration arg0) throws org.apache.commons.configuration.ConfigurationException
AbstractRecipientRewriteTable
doConfigure
in class AbstractRecipientRewriteTable
org.apache.commons.configuration.ConfigurationException
AbstractRecipientRewriteTable.doConfigure(org.apache.commons.configuration.HierarchicalConfiguration)
protected String mapAddressInternal(String user, String domain) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
MailAddress
object.
Translate virtual recipients to real recipients by mapping a string
containing the address of the real recipient as a value to a key. Leave
the value null
if no mapping should be performed. Multiple recipients may be specified by delineating
the mapped string with commas, semi-colons or colons.
mapAddressInternal
in class AbstractRecipientRewriteTable
user
- the mapping of virtual to real recipients, as
MailAddress
es to String
s.RecipientRewriteTableException
AbstractRecipientRewriteTable.mapAddressInternal(java.lang.String,
java.lang.String)
protected Collection<String> getUserDomainMappingsInternal(String user, String domain) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
getUserDomainMappingsInternal
in class AbstractRecipientRewriteTable
user
- the userdomain
- the domainRecipientRewriteTableException
AbstractRecipientRewriteTable.getUserDomainMappingsInternal(java.lang.String,
java.lang.String)
protected Map<String,Collection<String>> getAllMappingsInternal() throws RecipientRewriteTableException
AbstractRecipientRewriteTable
getAllMappingsInternal
in class AbstractRecipientRewriteTable
RecipientRewriteTableException
AbstractRecipientRewriteTable.getAllMappingsInternal()
protected void addMappingInternal(String user, String domain, String mapping) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
addMappingInternal
in class AbstractRecipientRewriteTable
user
- the userdomain
- the domainmapping
- the mappingRecipientRewriteTableException
protected void removeMappingInternal(String user, String domain, String mapping) throws RecipientRewriteTableException
AbstractRecipientRewriteTable
removeMappingInternal
in class AbstractRecipientRewriteTable
user
- the userdomain
- the domainmapping
- the mappingRecipientRewriteTableException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.