com.atlassian.confluence.mail
Class ConfluencePopMailServer

java.lang.Object
  extended by com.atlassian.mail.server.AbstractMailServer
      extended by com.atlassian.mail.server.impl.PopMailServerImpl
          extended by com.atlassian.confluence.mail.ConfluencePopMailServer
All Implemented Interfaces:
com.atlassian.mail.server.MailServer, com.atlassian.mail.server.PopMailServer, java.io.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
 
Constructor Summary
ConfluencePopMailServer(java.lang.Long id, java.lang.String name, java.lang.String description, com.atlassian.mail.MailProtocol popProtocol, java.lang.String serverName, java.lang.String popPort, java.lang.String username, java.lang.String password, java.lang.String toAddress)
           
 
Method Summary
 javax.mail.Session getSession()
          get the mail session.
 java.lang.String getToAddress()
           
 void setToAddress(java.lang.String toAddress)
           
 
Methods inherited from class com.atlassian.mail.server.impl.PopMailServerImpl
getAuthenticator, getType
 
Methods inherited from class com.atlassian.mail.server.AbstractMailServer
equals, getDebug, getDebugStream, getDescription, getHostname, getId, getMailProtocol, getMoreDebugInfoAboutCreatedSession, getName, getPassword, getPort, getProperties, getSessionFromServerManager, getSocksHost, getSocksPort, getTimeout, getUsername, hashCode, isTlsRequired, loadSystemProperties, propertyChanged, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setTlsRequired, setUsername, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.mail.server.MailServer
getDebug, getDescription, getHostname, getId, getMailProtocol, getName, getPassword, getPort, getProperties, getSocksHost, getSocksPort, getTimeout, getUsername, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setUsername
 

Constructor Detail

ConfluencePopMailServer

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

setToAddress

public void setToAddress(java.lang.String toAddress)

getToAddress

public java.lang.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


Copyright © 2003-2014 Atlassian. All Rights Reserved.