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.Exception
void removeUser(String username) throws Exception
username
- The name of the user being deleted.Exception
String[] listUsers() throws Exception
Exception
void setPassword(String userName, String password) throws Exception
userName
- The name of the user whose password will be changed.password
- The new password.Exception
void addDomain(String domain) throws Exception
domain
- The domain to add.Exception
void removeDomain(String domain) throws Exception
domain
- The domain to remove.Exception
String[] listDomains() throws Exception
Exception
Map<String,Collection<String>> listMappings() throws Exception
Exception
void 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.Exception
void 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.Exception
Collection<String> listUserDomainMappings(String user, String domain) throws Exception
user
- The username.domain
- The domain.Exception
void 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.Exception
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.