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, setImplementation
public DomainListManagement() throws NotCompliantMBeanException
NotCompliantMBeanException
public void setDomainList(DomainList domainList)
public void addDomain(String domain) throws Exception
DomainListManagementMBean
addDomain
in interface DomainListManagementMBean
domain
- domain to addException
- If the domain could not be addedpublic boolean containsDomain(String domain) throws Exception
DomainListManagementMBean
containsDomain
in interface DomainListManagementMBean
domain
- the domainException
public String[] getDomains() throws Exception
DomainListManagementMBean
getDomains
in interface DomainListManagementMBean
Exception
public void removeDomain(String domain) throws Exception
DomainListManagementMBean
removeDomain
in interface DomainListManagementMBean
domain
- domain to removeException
- If the domain could not be removedpublic String getDefaultDomain() throws Exception
DomainListManagementMBean
getDefaultDomain
in interface DomainListManagementMBean
Exception
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.