org.apache.james.api.domainlist
Interface DomainList

All Known Subinterfaces:
ManageableDomainList
All Known Implementing Classes:
AbstractDomainList, AbstractVirtualUserTable, JDBCDomainList, JDBCVirtualUserTable, SimpleDomainList, XMLDomainList, XMLVirtualUserTable

public interface DomainList

This interface provide should be implementated by services which offer domains for which email will accepted


Field Summary
static java.lang.String ROLE
          The component role used by components implementing this service
 
Method Summary
 boolean containsDomain(java.lang.String domain)
          Return true if the domain exists in the service
 java.util.List getDomains()
          Return List of domains which should be used as localdomains.
 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
 

Field Detail

ROLE

static final java.lang.String ROLE
The component role used by components implementing this service

See Also:
Constant Field Values
Method Detail

getDomains

java.util.List getDomains()
Return List of domains which should be used as localdomains. Return null if no domains were found

Returns:
domains

containsDomain

boolean containsDomain(java.lang.String domain)
Return true if the domain exists in the service

Parameters:
domain - the domain
Returns:
true if the given domain exists in the service

setAutoDetect

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

Parameters:
autodetect - set to false for disable

setAutoDetectIP

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

Parameters:
autodetectIP - set to false for disable


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