public interface DomainList
Modifier and Type | Method and Description |
---|---|
void |
addDomain(String domain)
Add domain to the service
|
boolean |
containsDomain(String domain)
Return true if the domain exists in the service
|
String |
getDefaultDomain()
Return the default domain which will get used to deliver mail to if only
the localpart was given on rcpt to.
|
String[] |
getDomains()
Return array of domains which should be used as localdomains.
|
void |
removeDomain(String domain)
Remove domain from the service
|
String[] getDomains() throws DomainListException
DomainListException
boolean containsDomain(String domain) throws DomainListException
domain
- the domainDomainListException
void addDomain(String domain) throws DomainListException
domain
- domain to addDomainListException
- If the domain could not be addedvoid removeDomain(String domain) throws DomainListException
domain
- domain to removeDomainListException
- If the domain could not be removedString getDefaultDomain() throws DomainListException
DomainListException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.