public abstract class AbstractDomainList extends Object implements DomainList, LogEnabled, Configurable
| Constructor and Description |
|---|
AbstractDomainList() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.commons.configuration.HierarchicalConfiguration config)
Configure the object.
|
String |
getDefaultDomain()
Return the default domain which will get used to deliver mail to if only
the localpart was given on rcpt to.
|
protected DNSService |
getDNSServer()
Return dnsServer
|
protected abstract List<String> |
getDomainListInternal()
Return domainList
|
String[] |
getDomains()
Return array of domains which should be used as localdomains.
|
protected org.slf4j.Logger |
getLogger() |
void |
setAutoDetect(boolean autoDetect)
Set to true to autodetect the hostname of the host on which james is
running, and add this to the domain service Default is true
|
void |
setAutoDetectIP(boolean autoDetectIP)
Set to true to lookup the ipaddresses for each given domain and add these
to the domain service Default is true
|
void |
setDNSService(DNSService dns) |
void |
setLog(org.slf4j.Logger logger)
Sets the service log.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDomain, containsDomain, removeDomainpublic void setDNSService(DNSService dns)
public void setLog(org.slf4j.Logger logger)
LogEnabledsetLog in interface LogEnabledlogger - not nullprotected org.slf4j.Logger getLogger()
public void configure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
Configurableconfigure in interface Configurableorg.apache.commons.configuration.ConfigurationExceptionConfigurable.configure(HierarchicalConfiguration)public String getDefaultDomain() throws DomainListException
DomainListgetDefaultDomain in interface DomainListDomainListExceptionDomainList.getDefaultDomain()public String[] getDomains() throws DomainListException
DomainListgetDomains in interface DomainListDomainListExceptionDomainList.getDomains()public void setAutoDetect(boolean autoDetect)
autoDetect - set to false for disablepublic void setAutoDetectIP(boolean autoDetectIP)
autoDetectIP - set to false for disableprotected DNSService getDNSServer()
protected abstract List<String> getDomainListInternal() throws DomainListException
DomainListExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.