Class MailServerTestConnectionAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.admin.actions.mail.MailServerTestConnectionAction
All Implemented Interfaces:
WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

public class MailServerTestConnectionAction extends ConfluenceActionSupport
This action is to test if the connection to a mail server is successful. Currently, we only test the connection with OAuth2
Since:
8.3.0
See Also:
  • Constructor Details

    • MailServerTestConnectionAction

      public MailServerTestConnectionAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • getToken

      public String getToken()
    • setToken

      public void setToken(String token)
    • getProtocol

      public String getProtocol()
    • setProtocol

      public void setProtocol(String protocol)
    • getHostname

      public String getHostname()
    • setHostname

      public void setHostname(String hostname)
    • getPort

      public String getPort()
    • setPort

      public void setPort(String port)
    • getUserName

      public String getUserName()
    • setUserName

      public void setUserName(String userName)
    • getAuthorization

      public String getAuthorization()
    • setAuthorization

      public void setAuthorization(String authorization)
    • getoAuth2Service

      public OAuth2Service getoAuth2Service()
    • setoAuth2Service

      public void setoAuth2Service(OAuth2Service oAuth2Service)
    • getMailServer

      protected com.atlassian.mail.server.MailServer getMailServer()
    • getJSONString

      public String getJSONString()