org.apache.camel.component.mail
Class DefaultJavaMailSender
java.lang.Object
org.apache.camel.component.mail.DefaultJavaMailSender
- All Implemented Interfaces:
- JavaMailSender
public class DefaultJavaMailSender
- extends Object
- implements JavaMailSender
Default JavaMailSender
which uses the JDK Mail API.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJavaMailSender
public DefaultJavaMailSender()
getHost
public String getHost()
- Specified by:
getHost
in interface JavaMailSender
setHost
public void setHost(String host)
- Specified by:
setHost
in interface JavaMailSender
getJavaMailProperties
public Properties getJavaMailProperties()
- Specified by:
getJavaMailProperties
in interface JavaMailSender
setJavaMailProperties
public void setJavaMailProperties(Properties javaMailProperties)
- Specified by:
setJavaMailProperties
in interface JavaMailSender
getPassword
public String getPassword()
- Specified by:
getPassword
in interface JavaMailSender
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interface JavaMailSender
getSession
public javax.mail.Session getSession()
- Specified by:
getSession
in interface JavaMailSender
setSession
public void setSession(javax.mail.Session session)
- Specified by:
setSession
in interface JavaMailSender
getUsername
public String getUsername()
- Specified by:
getUsername
in interface JavaMailSender
setUsername
public void setUsername(String username)
- Specified by:
setUsername
in interface JavaMailSender
getPort
public int getPort()
- Specified by:
getPort
in interface JavaMailSender
setPort
public void setPort(int port)
- Specified by:
setPort
in interface JavaMailSender
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in interface JavaMailSender
setProtocol
public void setProtocol(String protocol)
- Specified by:
setProtocol
in interface JavaMailSender
send
public void send(javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException
- Description copied from interface:
JavaMailSender
- Send the mail
- Specified by:
send
in interface JavaMailSender
- Parameters:
mimeMessage
- the message to send
- Throws:
javax.mail.MessagingException
- is thrown if error sending the mail.
getTransport
protected javax.mail.Transport getTransport(javax.mail.Session session)
throws javax.mail.NoSuchProviderException
- Strategy to get the
Transport
from the mail Session
.
- Throws:
javax.mail.NoSuchProviderException
Apache Camel