org.apache.james.domain
Class XMLDomainList

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.james.domain.AbstractDomainList
          extended by org.apache.james.domain.XMLDomainList
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, DomainList, ManageableDomainList

public class XMLDomainList
extends AbstractDomainList
implements org.apache.avalon.framework.configuration.Configurable

Mimic the old behavoir of JAMES


Field Summary
 
Fields inherited from interface org.apache.james.api.domainlist.ManageableDomainList
ROLE
 
Constructor Summary
XMLDomainList()
           
 
Method Summary
protected  boolean addDomainInternal(java.lang.String domain)
          The added domains will only added in memory!
 void configure(org.apache.avalon.framework.configuration.Configuration arg0)
           
 boolean containsDomain(java.lang.String domains)
          Return true if the domain exists in the service
protected  java.util.List getDomainListInternal()
          Return domainList
protected  boolean removeDomainInternal(java.lang.String domain)
          Remove domain
 
Methods inherited from class org.apache.james.domain.AbstractDomainList
addDomain, getDNSServer, getDomains, removeDomain, service, setAutoDetect, setAutoDetectIP
 
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
 

Constructor Detail

XMLDomainList

public XMLDomainList()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration arg0)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

getDomainListInternal

protected java.util.List getDomainListInternal()
Description copied from class: AbstractDomainList
Return domainList

Specified by:
getDomainListInternal in class AbstractDomainList
Returns:
List
See Also:
AbstractDomainList.getDomainListInternal()

containsDomain

public boolean containsDomain(java.lang.String domains)
Description copied from interface: DomainList
Return true if the domain exists in the service

Specified by:
containsDomain in interface DomainList
Parameters:
domains - the domain
Returns:
true if the given domain exists in the service
See Also:
DomainList.containsDomain(java.lang.String)

addDomainInternal

protected boolean addDomainInternal(java.lang.String domain)
The added domains will only added in memory!

Specified by:
addDomainInternal in class AbstractDomainList
Parameters:
domain - domain to add
Returns:
true if successfully
See Also:
AbstractDomainList.addDomainInternal(java.lang.String)

removeDomainInternal

protected boolean removeDomainInternal(java.lang.String domain)
Description copied from class: AbstractDomainList
Remove domain

Specified by:
removeDomainInternal in class AbstractDomainList
Parameters:
domain - domain to remove
Returns:
true if successfully
See Also:
AbstractDomainList.removeDomainInternal(java.lang.String)


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.