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, wait
addDomain, containsDomain, removeDomain
public void setDNSService(DNSService dns)
public void setLog(org.slf4j.Logger logger)
LogEnabled
setLog
in interface LogEnabled
logger
- not nullprotected org.slf4j.Logger getLogger()
public void configure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
Configurable
configure
in interface Configurable
org.apache.commons.configuration.ConfigurationException
Configurable.configure(HierarchicalConfiguration)
public String getDefaultDomain() throws DomainListException
DomainList
getDefaultDomain
in interface DomainList
DomainListException
DomainList.getDefaultDomain()
public String[] getDomains() throws DomainListException
DomainList
getDomains
in interface DomainList
DomainListException
DomainList.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
DomainListException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.