public class DefaultEditPopServerConfiguration extends Object implements EditPopServerConfiguration
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultEditPopServerConfiguration.PasswordIsMandatoryException |
| Constructor and Description |
|---|
DefaultEditPopServerConfiguration(MailServerAdministration parent,
net.sourceforge.jwebunit.WebTester tester) |
| Modifier and Type | Method and Description |
|---|---|
EditPopServerConfiguration |
setDescription(String description)
Sets the description field to an specified value.
|
EditPopServerConfiguration |
setHostName(String hostName)
Sets the host name field to an specified value.
|
EditPopServerConfiguration |
setName(String name)
Sets the name field to an specified value.
|
EditPopServerConfiguration |
setPassword(String password)
Sets the password field to an specified value.
|
EditPopServerConfiguration |
setPort(String portNumber)
Sets the port field to an specified value.
|
EditPopServerConfiguration |
setProtocol(String protocol)
Sets the protocol select list to an specified option.
|
EditPopServerConfiguration |
setTimeout(String timeout)
Sets the timeout field to an specified value.
|
EditPopServerConfiguration |
setUserName(String userName)
Sets the user name field to an specified value.
|
MailServerAdministration |
update()
Submits the edit POP/IMAP server configuration form.
|
public DefaultEditPopServerConfiguration(MailServerAdministration parent, net.sourceforge.jwebunit.WebTester tester)
public EditPopServerConfiguration setName(String name)
EditPopServerConfigurationsetName in interface EditPopServerConfigurationname - The value of the name to set.public EditPopServerConfiguration setDescription(String description)
EditPopServerConfigurationsetDescription in interface EditPopServerConfigurationdescription - The value of the description to set.public EditPopServerConfiguration setProtocol(String protocol)
EditPopServerConfigurationsetProtocol in interface EditPopServerConfigurationprotocol - The value of the protocol to set.
This must be one of the display values of the available options in the select list
(POP, SECURE_POP, IMAP, SECURE_IMAP)public EditPopServerConfiguration setHostName(String hostName)
EditPopServerConfigurationsetHostName in interface EditPopServerConfigurationhostName - The value of the host name to set.public EditPopServerConfiguration setPort(String portNumber)
EditPopServerConfigurationsetPort in interface EditPopServerConfigurationportNumber - The value of the port to set.public EditPopServerConfiguration setTimeout(String timeout)
EditPopServerConfigurationsetTimeout in interface EditPopServerConfigurationtimeout - The value of the timeout to set.public EditPopServerConfiguration setUserName(String userName)
EditPopServerConfigurationsetUserName in interface EditPopServerConfigurationuserName - The value of the user name to set.public EditPopServerConfiguration setPassword(String password)
EditPopServerConfigurationEditPopServerConfiguration.update() to submit the form, this is because the field is always set blank when the update form
is displayed.setPassword in interface EditPopServerConfigurationpassword - The value of the password to set.public MailServerAdministration update() throws DefaultEditPopServerConfiguration.PasswordIsMandatoryException
EditPopServerConfigurationupdate in interface EditPopServerConfigurationDefaultEditPopServerConfiguration.PasswordIsMandatoryException - if no value has been set for the password
field, you should always call EditPopServerConfiguration.setPassword(String) before calling this method.Copyright © 2002-2018 Atlassian. All Rights Reserved.