Class DefaultEditPopServerConfiguration
java.lang.Object
com.atlassian.jira.functest.framework.admin.DefaultEditPopServerConfiguration
- All Implemented Interfaces:
EditPopServerConfiguration
- Since:
- v4.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEditPopServerConfiguration(MailServerAdministration parent, net.sourceforge.jwebunit.WebTester tester) -
Method Summary
Modifier and TypeMethodDescriptionsetDescription(String description) Sets the description field to an specified value.setHostName(String hostName) Sets the host name field to an specified value.Sets the name field to an specified value.setPassword(String password) Sets the password field to an specified value.Sets the port field to an specified value.setProtocol(String protocol) Sets the protocol select list to an specified option.setTimeout(String timeout) Sets the timeout field to an specified value.setUserName(String userName) Sets the user name field to an specified value.update()Submits the edit POP/IMAP server configuration form.
-
Constructor Details
-
DefaultEditPopServerConfiguration
public DefaultEditPopServerConfiguration(MailServerAdministration parent, net.sourceforge.jwebunit.WebTester tester)
-
-
Method Details
-
setName
Description copied from interface:EditPopServerConfigurationSets the name field to an specified value. This can not be blank.- Specified by:
setNamein interfaceEditPopServerConfiguration- Parameters:
name- The value of the name to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setDescription
Description copied from interface:EditPopServerConfigurationSets the description field to an specified value. This field is optional and can be blank.- Specified by:
setDescriptionin interfaceEditPopServerConfiguration- Parameters:
description- The value of the description to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setProtocol
Description copied from interface:EditPopServerConfigurationSets the protocol select list to an specified option. The default option is POP.- Specified by:
setProtocolin interfaceEditPopServerConfiguration- Parameters:
protocol- 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)- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setHostName
Description copied from interface:EditPopServerConfigurationSets the host name field to an specified value. This can not be blank.- Specified by:
setHostNamein interfaceEditPopServerConfiguration- Parameters:
hostName- The value of the host name to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setPort
Description copied from interface:EditPopServerConfigurationSets the port field to an specified value. This field is optional and can be blank, if left blank the port will be set to the default value for the selected protocol.- Specified by:
setPortin interfaceEditPopServerConfiguration- Parameters:
portNumber- The value of the port to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setTimeout
Description copied from interface:EditPopServerConfigurationSets the timeout field to an specified value. This is optional and can be blank. If left blank it will default to 10000 milliseconds.- Specified by:
setTimeoutin interfaceEditPopServerConfiguration- Parameters:
timeout- The value of the timeout to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setUserName
Description copied from interface:EditPopServerConfigurationSets the user name field to an specified value. This is a mandatory field and can not be left blank.- Specified by:
setUserNamein interfaceEditPopServerConfiguration- Parameters:
userName- The value of the user name to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
setPassword
Description copied from interface:EditPopServerConfigurationSets the password field to an specified value. It is mandatory to call this method before callingEditPopServerConfiguration.update()to submit the form, this is because the field is always set blank when the update form is displayed.- Specified by:
setPasswordin interfaceEditPopServerConfiguration- Parameters:
password- The value of the password to set.- Returns:
- This instance of the Edit Pop Server Configuration form.
-
update
public MailServerAdministration update() throws DefaultEditPopServerConfiguration.PasswordIsMandatoryExceptionDescription copied from interface:EditPopServerConfigurationSubmits the edit POP/IMAP server configuration form.- Specified by:
updatein interfaceEditPopServerConfiguration- Returns:
- The Mail Server Administration page instance that is displayed after submitting the form.
- Throws:
DefaultEditPopServerConfiguration.PasswordIsMandatoryException- if no value has been set for the password field, you should always callEditPopServerConfiguration.setPassword(String)before calling this method.
-