|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.mail.server.AbstractMailServer com.atlassian.mail.server.impl.SMTPMailServerImpl
public class SMTPMailServerImpl
Field Summary |
---|
Fields inherited from class com.atlassian.mail.server.AbstractMailServer |
---|
LOG |
Fields inherited from interface com.atlassian.mail.server.SMTPMailServer |
---|
DEFAULT_SMTP_PORT |
Constructor Summary | |
---|---|
SMTPMailServerImpl()
|
|
SMTPMailServerImpl(Long id,
String name,
String description,
String from,
String prefix,
boolean isSession,
String location,
String username,
String password)
|
|
SMTPMailServerImpl(Long id,
String name,
String description,
String from,
String prefix,
boolean isSession,
String location,
String username,
String password,
String smtpPort)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
protected Authenticator |
getAuthenticator()
|
boolean |
getDebug()
Whether SMTP-level logging is enabled. |
PrintStream |
getDebugStream()
Where debug logs currently go to. |
String |
getDefaultFrom()
|
String |
getJndiLocation()
|
protected Object |
getJndiSession()
|
String |
getPrefix()
|
Session |
getSession()
get the mail session |
String |
getSmtpPort()
|
String |
getType()
|
int |
hashCode()
|
boolean |
isSessionServer()
|
protected void |
propertyChanged()
Discard the cached session when a property of the server changes. |
void |
quietSend(Email email)
Send a message - but don't throw exceptions, just log the errors |
void |
send(Email email)
|
void |
setDebug(boolean debug)
Enable or disable SMTP-level logging. |
void |
setDebugStream(PrintStream debugStream)
If debug is enabled, output will go to this stream. |
void |
setDefaultFrom(String defaultFrom)
|
void |
setJndiLocation(String jndiLocation)
|
void |
setPrefix(String prefix)
|
void |
setSessionServer(boolean sessionServer)
|
void |
setSmtpPort(String smtpPort)
|
String |
toString()
|
Methods inherited from class com.atlassian.mail.server.AbstractMailServer |
---|
getDescription, getHostname, getId, getName, getPassword, getUsername, setDescription, setHostname, setId, setName, setPassword, setUsername |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.mail.server.MailServer |
---|
getDescription, getHostname, getId, getName, getPassword, getUsername, setDescription, setHostname, setId, setName, setPassword, setUsername |
Constructor Detail |
---|
public SMTPMailServerImpl()
public SMTPMailServerImpl(Long id, String name, String description, String from, String prefix, boolean isSession, String location, String username, String password)
public SMTPMailServerImpl(Long id, String name, String description, String from, String prefix, boolean isSession, String location, String username, String password, String smtpPort)
Method Detail |
---|
public String getJndiLocation()
getJndiLocation
in interface SMTPMailServer
public void setJndiLocation(String jndiLocation)
setJndiLocation
in interface SMTPMailServer
protected Authenticator getAuthenticator()
public Session getSession() throws NamingException, MailException
getSession
in interface MailServer
NamingException
MailException
protected Object getJndiSession() throws NamingException
NamingException
public void send(Email email) throws MailException
send
in interface SMTPMailServer
MailException
public void quietSend(Email email) throws MailException
quietSend
in interface SMTPMailServer
MailException
public String getType()
getType
in interface MailServer
public String getDefaultFrom()
getDefaultFrom
in interface SMTPMailServer
public void setDefaultFrom(String defaultFrom)
setDefaultFrom
in interface SMTPMailServer
public String getPrefix()
getPrefix
in interface SMTPMailServer
public void setPrefix(String prefix)
setPrefix
in interface SMTPMailServer
public String getSmtpPort()
getSmtpPort
in interface SMTPMailServer
public void setSmtpPort(String smtpPort)
setSmtpPort
in interface SMTPMailServer
public void setDebug(boolean debug)
SMTPMailServer
setDebug
in interface SMTPMailServer
debug
- Turn debugging on or offpublic void setDebugStream(PrintStream debugStream)
SMTPMailServer
setDebugStream
in interface SMTPMailServer
debugStream
- An optional stream to send debug messages to. If null, System.out is used.public boolean getDebug()
SMTPMailServer
getDebug
in interface SMTPMailServer
public PrintStream getDebugStream()
SMTPMailServer
getDebugStream
in interface SMTPMailServer
public boolean isSessionServer()
isSessionServer
in interface SMTPMailServer
public void setSessionServer(boolean sessionServer)
setSessionServer
in interface SMTPMailServer
public boolean equals(Object o)
equals
in class AbstractMailServer
public int hashCode()
hashCode
in class AbstractMailServer
public String toString()
toString
in class AbstractMailServer
protected void propertyChanged()
propertyChanged
in class AbstractMailServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |