Class MailServerPage
- java.lang.Object
-
- com.atlassian.confluence.it.admin.MailServerPage
-
public class MailServerPage extends Object
-
-
Constructor Summary
Constructors Constructor Description MailServerPage(net.sourceforge.jwebunit.junit.WebTester webTester)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
Adds a SMTP server to the Confluence configurationString
getMailServerPrefix(int index)
int
getNumberOfSmtpMailServers()
-
-
-
Method Detail
-
addSmtpServer
public void addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
Adds a SMTP server to the Confluence configuration- Parameters:
serverName
- description of the server for Confluencefrom
- emails sent via this server will have this value in the from headersubjectPrefix
- this prefix will be appended to all mail sent via this serverhostname
- the host name of the server to connect toport
- the port of the server to connect to
-
getNumberOfSmtpMailServers
public int getNumberOfSmtpMailServers()
-
getMailServerPrefix
public String getMailServerPrefix(int index)
- Parameters:
index
- zero based index of which mail server to get- Returns:
- string of the subject prefix.
- Throws:
IndexOutOfBoundsException
- when the index not less than the number of mail servers.
-
-