org.apache.james.rrt.hbase
Class HBaseRecipientRewriteTable

java.lang.Object
  extended by org.apache.james.rrt.lib.AbstractRecipientRewriteTable
      extended by org.apache.james.rrt.hbase.HBaseRecipientRewriteTable
All Implemented Interfaces:
Configurable, LogEnabled, RecipientRewriteTable

public class HBaseRecipientRewriteTable
extends AbstractRecipientRewriteTable

Implementation of the RecipientRewriteTable for a HBase persistence.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.rrt.api.RecipientRewriteTable
RecipientRewriteTable.ErrorMappingException
 
Field Summary
 
Fields inherited from interface org.apache.james.rrt.api.RecipientRewriteTable
ALIASDOMAIN_PREFIX, ERROR_PREFIX, REGEX_PREFIX, WILDCARD
 
Constructor Summary
HBaseRecipientRewriteTable()
           
 
Method Summary
protected  void addMappingInternal(String user, String domain, String mapping)
           
protected  Map<String,Collection<String>> getAllMappingsInternal()
           
protected  Collection<String> getUserDomainMappingsInternal(String user, String domain)
           
protected  String mapAddressInternal(String user, String domain)
           
protected  void removeMappingInternal(String user, String domain, String mapping)
           
 
Methods inherited from class org.apache.james.rrt.lib.AbstractRecipientRewriteTable
addAddressMapping, addAliasDomainMapping, addErrorMapping, addMapping, addRegexMapping, configure, doConfigure, getAllMappings, getFixedDomain, getFixedUser, getLogger, getMappings, getMappings, getUserDomainMappings, removeAddressMapping, removeAliasDomainMapping, removeErrorMapping, removeMapping, removeRegexMapping, setDomainList, setLog, setMappingLimit, setRecursiveMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseRecipientRewriteTable

public HBaseRecipientRewriteTable()
Method Detail

addMappingInternal

protected void addMappingInternal(String user,
                                  String domain,
                                  String mapping)
                           throws RecipientRewriteTableException
Specified by:
addMappingInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.addMappingInternal(String, String, String)

getUserDomainMappingsInternal

protected Collection<String> getUserDomainMappingsInternal(String user,
                                                           String domain)
                                                    throws RecipientRewriteTableException
Specified by:
getUserDomainMappingsInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.getUserDomainMappingsInternal(String, String)

getAllMappingsInternal

protected Map<String,Collection<String>> getAllMappingsInternal()
                                                         throws RecipientRewriteTableException
Specified by:
getAllMappingsInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.getAllMappingsInternal()

mapAddressInternal

protected String mapAddressInternal(String user,
                                    String domain)
                             throws RecipientRewriteTableException
Specified by:
mapAddressInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.mapAddressInternal(String, String)

removeMappingInternal

protected void removeMappingInternal(String user,
                                     String domain,
                                     String mapping)
                              throws RecipientRewriteTableException
Specified by:
removeMappingInternal in class AbstractRecipientRewriteTable
Throws:
RecipientRewriteTableException
See Also:
AbstractRecipientRewriteTable.removeMappingInternal(String, String, String)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.