|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.domain.AbstractDomainList
public abstract class AbstractDomainList
All implementations of the DomainList interface should extends this abstract class
Field Summary |
---|
Fields inherited from interface org.apache.james.api.domainlist.ManageableDomainList |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractDomainList()
|
Method Summary | |
---|---|
boolean |
addDomain(java.lang.String domain)
Add domain to the service |
protected abstract boolean |
addDomainInternal(java.lang.String domain)
Add domain |
protected DNSService |
getDNSServer()
Return dnsServer |
protected abstract java.util.List |
getDomainListInternal()
Return domainList |
java.util.List |
getDomains()
Return List of domains which should be used as localdomains. |
boolean |
removeDomain(java.lang.String domain)
Remove domain from the service |
protected abstract boolean |
removeDomainInternal(java.lang.String domain)
Remove domain |
void |
service(org.apache.avalon.framework.service.ServiceManager arg0)
|
void |
setAutoDetect(boolean autoDetect)
Set to true to autodetect the hostname of the host on which james is runnin, 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 |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
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.api.domainlist.DomainList |
---|
containsDomain |
Constructor Detail |
---|
public AbstractDomainList()
Method Detail |
---|
public void service(org.apache.avalon.framework.service.ServiceManager arg0) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public java.util.List getDomains()
DomainList
getDomains
in interface DomainList
DomainList.getDomains()
public boolean addDomain(java.lang.String domain)
ManageableDomainList
addDomain
in interface ManageableDomainList
domain
- domain to add
ManageableDomainList.addDomain(java.lang.String)
public boolean removeDomain(java.lang.String domain)
ManageableDomainList
removeDomain
in interface ManageableDomainList
domain
- domain to remove
ManageableDomainList.removeDomain(java.lang.String)
public void setAutoDetect(boolean autoDetect)
DomainList
setAutoDetect
in interface DomainList
autoDetect
- set to false for disableDomainList.setAutoDetect(boolean)
public void setAutoDetectIP(boolean autoDetectIP)
DomainList
setAutoDetectIP
in interface DomainList
autoDetectIP
- set to false for disableDomainList.setAutoDetectIP(boolean)
protected DNSService getDNSServer()
protected abstract java.util.List 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 |