public class DomainListManagement extends StandardMBean implements DomainListManagementMBean
| Constructor and Description |
|---|
DomainListManagement() |
| 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
|
void |
setDomainList(DomainList domainList) |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic DomainListManagement()
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic void setDomainList(DomainList domainList)
public void addDomain(String domain) throws Exception
DomainListManagementMBeanaddDomain in interface DomainListManagementMBeandomain - domain to addException - If the domain could not be addedpublic boolean containsDomain(String domain) throws Exception
DomainListManagementMBeancontainsDomain in interface DomainListManagementMBeandomain - the domainExceptionpublic String[] getDomains() throws Exception
DomainListManagementMBeangetDomains in interface DomainListManagementMBeanExceptionpublic void removeDomain(String domain) throws Exception
DomainListManagementMBeanremoveDomain in interface DomainListManagementMBeandomain - domain to removeException - If the domain could not be removedpublic String getDefaultDomain() throws Exception
DomainListManagementMBeangetDefaultDomain in interface DomainListManagementMBeanExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.