Class 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

    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:
    Serialized Form
    • Constructor Detail

      • MailServerTestConnectionAction

        public MailServerTestConnectionAction()
    • Method Detail

      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.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)
      • setoAuth2Service

        public void setoAuth2Service​(OAuth2Service oAuth2Service)
      • getMailServer

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

        public String getJSONString()