com.atlassian.confluence.it.admin
Class MailServerPage

java.lang.Object
  extended by com.atlassian.confluence.it.admin.MailServerPage

public class MailServerPage
extends java.lang.Object


Constructor Summary
MailServerPage(net.sourceforge.jwebunit.junit.WebTester webTester)
           
 
Method Summary
 void addSmtpServer(java.lang.String serverName, java.lang.String from, java.lang.String subjectPrefix, java.lang.String hostname, int port)
          Adds a SMTP server to the Confluence configuration
 java.lang.String getMailServerPrefix(int index)
           
 int getNumberOfSmtpMailServers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailServerPage

public MailServerPage(net.sourceforge.jwebunit.junit.WebTester webTester)
Method Detail

addSmtpServer

public void addSmtpServer(java.lang.String serverName,
                          java.lang.String from,
                          java.lang.String subjectPrefix,
                          java.lang.String hostname,
                          int port)
Adds a SMTP server to the Confluence configuration

Parameters:
serverName - description of the server for Confluence
from - emails sent via this server will have this value in the from header
subjectPrefix - this prefix will be appended to all mail sent via this server
hostname - the host name of the server to connect to
port - the port of the server to connect to

getNumberOfSmtpMailServers

public int getNumberOfSmtpMailServers()

getMailServerPrefix

public java.lang.String getMailServerPrefix(int index)
Parameters:
index - zero based index of which mail server to get
Returns:
string of the subject prefix.
Throws:
java.lang.IndexOutOfBoundsException - when the index not less than the number of mail servers.


Copyright © 2003-2014 Atlassian. All Rights Reserved.