public interface ServerProbe
| Modifier and Type | Method and Description |
|---|---|
void |
addAddressMapping(String user,
String domain,
String toAddress)
Add address mapping.
|
void |
addDomain(String domain)
Add domain to the service.
|
void |
addRegexMapping(String user,
String domain,
String regex)
Remove regex mapping.
|
void |
addUser(String userName,
String password)
Add a user to this mail server.
|
String[] |
listDomains()
Get a list of domains for the service.
|
Map<String,Collection<String>> |
listMappings()
Get a Map which holds all mappings.
|
Collection<String> |
listUserDomainMappings(String user,
String domain)
Return the explicit mapping stored for the given user and domain.
|
String[] |
listUsers()
Get a List the names of all users.
|
void |
removeAddressMapping(String user,
String domain,
String fromAddress)
Remove address mapping.
|
void |
removeDomain(String domain)
Remove domain from the service
|
void |
removeRegexMapping(String user,
String domain,
String regex)
Remove regex mapping.
|
void |
removeUser(String username)
Delete a user from this mail server.
|
void |
setPassword(String userName,
String password)
Set a user's password.
|
void addUser(String userName, String password) throws Exception
userName - The name of the user being added.password - The password of the user being added.Exceptionvoid removeUser(String username) throws Exception
username - The name of the user being deleted.ExceptionString[] listUsers() throws Exception
Exceptionvoid setPassword(String userName, String password) throws Exception
userName - The name of the user whose password will be changed.password - The new password.Exceptionvoid addDomain(String domain) throws Exception
domain - The domain to add.Exceptionvoid removeDomain(String domain) throws Exception
domain - The domain to remove.ExceptionString[] listDomains() throws Exception
ExceptionMap<String,Collection<String>> listMappings() throws Exception
Exceptionvoid addAddressMapping(String user, String domain, String toAddress) throws Exception
user - The username, or null if no username should be used.domain - The domain, or null if no domain should be used.toAddress - The address.Exceptionvoid removeAddressMapping(String user, String domain, String fromAddress) throws Exception
user - The username, or null if no username should be used.domain - The domain, or null if no domain should be usedfromAddress - The address.ExceptionCollection<String> listUserDomainMappings(String user, String domain) throws Exception
user - The username.domain - The domain.Exceptionvoid addRegexMapping(String user, String domain, String regex) throws Exception
user - The username, or null if no username should be used.domain - The domain, or null if no domain should be used.regex - The regex.ExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.