Class ConfluencePopMailServer

  • All Implemented Interfaces:
    com.atlassian.mail.server.MailServer, com.atlassian.mail.server.PopMailServer, Serializable

    public class ConfluencePopMailServer
    extends com.atlassian.mail.server.impl.PopMailServerImpl
    A Confluence/Atlassian-flavoured POP server that stores the email address associated with the POP account.

    TODO CONFDEV-11374 Add session and address support to atlassian-mail

    Since:
    5.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.atlassian.mail.server.AbstractMailServer

        isAuthenticating, log
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.mail.Session getSession()
      get the mail session.
      String getToAddress()  
      void setToAddress​(String toAddress)  
      • Methods inherited from class com.atlassian.mail.server.impl.PopMailServerImpl

        getAuthenticator, getType
      • Methods inherited from class com.atlassian.mail.server.AbstractMailServer

        equals, getConnectionTimeout, getDebug, getDebugStream, getDescription, getHostname, getId, getMailProtocol, getMoreDebugInfoAboutCreatedSession, getName, getPassword, getPort, getProperties, getSessionFromServerManager, getSocksHost, getSocksPort, getTimeout, getUsername, hashCode, isTlsRequired, loadSystemProperties, propertyChanged, setConnectionTimeout, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setTlsRequired, setUsername, toString
      • Methods inherited from interface com.atlassian.mail.server.MailServer

        getDebug, getDescription, getHostname, getId, getMailProtocol, getName, getPassword, getPort, getProperties, getSocksHost, getSocksPort, getTimeout, getUsername, isTlsHostnameCheckRequired, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setTlsHostnameCheckRequired, setUsername
    • Constructor Detail

      • ConfluencePopMailServer

        public ConfluencePopMailServer​(Long id,
                                       String name,
                                       String description,
                                       com.atlassian.mail.MailProtocol popProtocol,
                                       String serverName,
                                       String popPort,
                                       String username,
                                       String password,
                                       String toAddress)
    • Method Detail

      • setToAddress

        public void setToAddress​(String toAddress)
      • getToAddress

        public String getToAddress()
      • getSession

        public javax.mail.Session getSession()
                                      throws com.atlassian.mail.MailException
        get the mail session. HACK - copied from SMTPMailServerImpl. Should go back in atlassian-mail after fixing.
        Specified by:
        getSession in interface com.atlassian.mail.server.MailServer
        Overrides:
        getSession in class com.atlassian.mail.server.impl.PopMailServerImpl
        Throws:
        com.atlassian.mail.MailException