public abstract class AbstractDomainList extends Object implements org.apache.james.domainlist.api.DomainList, org.apache.james.lifecycle.api.LogEnabled, org.apache.james.lifecycle.api.Configurable
| Constructor and Description |
|---|
AbstractDomainList() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.commons.configuration.HierarchicalConfiguration config) |
String |
getDefaultDomain() |
protected org.apache.james.dnsservice.api.DNSService |
getDNSServer()
Return dnsServer
|
protected abstract List<String> |
getDomainListInternal()
Return domainList
|
List<String> |
getDomains() |
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(org.apache.james.dnsservice.api.DNSService dns) |
void |
setLog(org.slf4j.Logger logger) |
protected static final String LOCALHOST
public AbstractDomainList()
@Inject public void setDNSService(org.apache.james.dnsservice.api.DNSService dns)
public void setLog(org.slf4j.Logger logger)
setLog in interface org.apache.james.lifecycle.api.LogEnabledprotected org.slf4j.Logger getLogger()
public void configure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
configure in interface org.apache.james.lifecycle.api.Configurableorg.apache.commons.configuration.ConfigurationExceptionpublic String getDefaultDomain() throws org.apache.james.domainlist.api.DomainListException
getDefaultDomain in interface org.apache.james.domainlist.api.DomainListorg.apache.james.domainlist.api.DomainListExceptionpublic List<String> getDomains() throws org.apache.james.domainlist.api.DomainListException
getDomains in interface org.apache.james.domainlist.api.DomainListorg.apache.james.domainlist.api.DomainListExceptionpublic void setAutoDetect(boolean autoDetect)
autoDetect - set to false for disablepublic void setAutoDetectIP(boolean autoDetectIP)
autoDetectIP - set to false for disableprotected org.apache.james.dnsservice.api.DNSService getDNSServer()
protected abstract List<String> getDomainListInternal() throws org.apache.james.domainlist.api.DomainListException
org.apache.james.domainlist.api.DomainListExceptionCopyright © 2002-2017 The Apache Software Foundation. All Rights Reserved.