|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.james.domainlist.lib.AbstractDomainList
public abstract class AbstractDomainList
All implementations of the DomainList interface should extends this abstract class
| Constructor Summary | |
|---|---|
AbstractDomainList()
|
|
| Method Summary | |
|---|---|
boolean |
addDomain(java.lang.String domain)
|
protected abstract boolean |
addDomainInternal(java.lang.String domain)
Add domain |
protected DNSService |
getDNSServer()
Return dnsServer |
protected abstract java.util.List<java.lang.String> |
getDomainListInternal()
Return domainList |
java.lang.String[] |
getDomains()
|
protected org.apache.commons.logging.Log |
getLogger()
|
boolean |
removeDomain(java.lang.String domain)
|
protected abstract boolean |
removeDomainInternal(java.lang.String domain)
Remove domain |
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.apache.commons.logging.Log logger)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.james.domainlist.api.DomainList |
|---|
containsDomain |
| Constructor Detail |
|---|
public AbstractDomainList()
| Method Detail |
|---|
public void setDNSService(DNSService dns)
public void setLog(org.apache.commons.logging.Log logger)
setLog in interface LogEnabledprotected org.apache.commons.logging.Log getLogger()
public java.lang.String[] getDomains()
getDomains in interface DomainListpublic boolean addDomain(java.lang.String domain)
addDomain in interface DomainListManageableDomainListpublic boolean removeDomain(java.lang.String domain)
removeDomain in interface DomainListManageableDomainListpublic void setAutoDetect(boolean autoDetect)
autodetect - set to false for disablepublic void setAutoDetectIP(boolean autoDetectIP)
autodetectIP - set to false for disableprotected DNSService getDNSServer()
protected abstract java.util.List<java.lang.String> getDomainListInternal()
protected abstract boolean addDomainInternal(java.lang.String domain)
domain - domain to add
protected abstract boolean removeDomainInternal(java.lang.String domain)
domain - domain to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||