Constructor and Description |
---|
MailConfiguration() |
MailConfiguration(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
void |
configure(URI uri) |
MailConfiguration |
copy()
Returns a copy of this configuration
|
protected JavaMailSender |
createJavaMailSender() |
Properties |
getAdditionalJavaMailProperties() |
String |
getAlternativeBodyHeader() |
String |
getBcc() |
String |
getCc() |
long |
getConnectionTimeout() |
String |
getContentType() |
String |
getCopyTo() |
int |
getFetchSize() |
String |
getFolderName() |
String |
getFrom() |
String |
getHost() |
Properties |
getJavaMailProperties() |
JavaMailSender |
getJavaMailSender() |
String |
getMailStoreLogInformation() |
String |
getPassword() |
int |
getPort() |
String |
getProtocol() |
Map<javax.mail.Message.RecipientType,String> |
getRecipients() |
String |
getReplyTo() |
javax.mail.Session |
getSession() |
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
String |
getSubject() |
String |
getTo() |
String |
getUsername() |
boolean |
isCloseFolder() |
boolean |
isDebugMode() |
boolean |
isDelete() |
boolean |
isDisconnect() |
boolean |
isDummyTrustManager() |
boolean |
isHandleFailedMessage() |
boolean |
isIgnoreUnsupportedCharset() |
boolean |
isIgnoreUriScheme() |
boolean |
isMapMailMessage() |
boolean |
isPeek() |
boolean |
isSecureProtocol()
Is the used protocol to be secure or not
|
boolean |
isSkipFailedMessage() |
boolean |
isStartTlsEnabled() |
boolean |
isUnseen() |
boolean |
isUseInlineAttachments() |
void |
setAdditionalJavaMailProperties(Properties additionalJavaMailProperties)
Sets additional java mail properties, that will append/override any default properties
that is set based on all the other options.
|
void |
setAlternativeBodyHeader(String alternativeBodyHeader)
Specifies the key to an IN message header that contains an alternative email body.
|
void |
setBcc(String address)
Sets the BCC email address.
|
void |
setCc(String address)
Sets the CC email address.
|
void |
setCloseFolder(boolean closeFolder)
Whether the consumer should close the folder after polling.
|
void |
setConnectionTimeout(int connectionTimeout)
The connection timeout in milliseconds.
|
void |
setContentType(String contentType)
The mail message content type.
|
void |
setCopyTo(String copyTo)
After processing a mail message, it can be copied to a mail folder with the given name.
|
void |
setDebugMode(boolean debugMode)
Enable debug mode on the underlying mail framework.
|
void |
setDelete(boolean delete)
Deletes the messages after they have been processed.
|
void |
setDisconnect(boolean disconnect)
Whether the consumer should disconnect after polling.
|
void |
setDummyTrustManager(boolean dummyTrustManager)
To use a dummy security setting for trusting all certificates.
|
void |
setFetchSize(int fetchSize)
Sets the maximum number of messages to consume during a poll.
|
void |
setFolderName(String folderName)
The folder to poll.
|
void |
setFrom(String from)
The from email address
|
void |
setHandleFailedMessage(boolean handleFailedMessage)
If the mail consumer cannot retrieve a given mail message, then this option allows to handle
the caused exception by the consumer's error handler.
|
void |
setHost(String host)
The mail server host name
|
void |
setIgnoreUnsupportedCharset(boolean ignoreUnsupportedCharset)
Option to let Camel ignore unsupported charset in the local JVM when sending mails.
|
void |
setIgnoreUriScheme(boolean ignoreUriScheme)
Option to let Camel ignore unsupported charset in the local JVM when sending mails.
|
void |
setJavaMailProperties(Properties javaMailProperties)
Sets the java mail options.
|
void |
setJavaMailSender(JavaMailSender javaMailSender)
To use a custom
JavaMailSender for sending emails. |
void |
setMapMailMessage(boolean mapMailMessage)
Specifies whether Camel should map the received mail message to Camel body/headers.
|
void |
setPassword(String password)
The password for login
|
void |
setPeek(boolean peek)
Will mark the javax.mail.Message as peeked before processing the mail message.
|
void |
setPort(int port)
The port number of the mail server
|
void |
setProtocol(String protocol)
The protocol for communicating with the mail server
|
void |
setReplyTo(String replyTo)
The Reply-To recipients (the receivers of the response mail).
|
void |
setSession(javax.mail.Session session)
Specifies the mail session that camel should use for all mail interactions.
|
void |
setSkipFailedMessage(boolean skipFailedMessage)
If the mail consumer cannot retrieve a given mail message, then this option allows to skip
the message and move on to retrieve the next mail message.
|
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
To configure security using SSLContextParameters.
|
void |
setSubject(String subject)
The Subject of the message being sent.
|
void |
setTo(String address)
Sets the To email address.
|
void |
setUnseen(boolean unseen)
Whether to limit by unseen mails only.
|
void |
setUseInlineAttachments(boolean useInlineAttachments)
Whether to use disposition inline or attachment.
|
void |
setUsername(String username)
The username for login
|
public MailConfiguration()
public MailConfiguration(org.apache.camel.CamelContext context)
public MailConfiguration copy()
public void configure(URI uri)
protected JavaMailSender createJavaMailSender()
public boolean isSecureProtocol()
public boolean isStartTlsEnabled()
public String getMailStoreLogInformation()
public JavaMailSender getJavaMailSender()
public void setJavaMailSender(JavaMailSender javaMailSender)
JavaMailSender
for sending emails.public String getHost()
public void setHost(String host)
public Properties getJavaMailProperties()
public void setJavaMailProperties(Properties javaMailProperties)
public Properties getAdditionalJavaMailProperties()
public void setAdditionalJavaMailProperties(Properties additionalJavaMailProperties)
public String getPassword()
public void setPassword(String password)
public String getSubject()
public void setSubject(String subject)
public int getPort()
public void setPort(int port)
public String getProtocol()
public void setProtocol(String protocol)
public javax.mail.Session getSession()
public void setSession(javax.mail.Session session)
public String getUsername()
public void setUsername(String username)
public String getFrom()
public void setFrom(String from)
public boolean isDelete()
public void setDelete(boolean delete)
public boolean isMapMailMessage()
public void setMapMailMessage(boolean mapMailMessage)
public String getFolderName()
public void setFolderName(String folderName)
public boolean isIgnoreUriScheme()
public void setIgnoreUriScheme(boolean ignoreUriScheme)
public boolean isUnseen()
public void setUnseen(boolean unseen)
public void setTo(String address)
public String getTo()
public void setCc(String address)
public String getCc()
public void setBcc(String address)
public String getBcc()
public String getReplyTo()
public void setReplyTo(String replyTo)
public int getFetchSize()
public void setFetchSize(int fetchSize)
public boolean isDebugMode()
public void setDebugMode(boolean debugMode)
public long getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
public boolean isDummyTrustManager()
public void setDummyTrustManager(boolean dummyTrustManager)
public String getContentType()
public void setContentType(String contentType)
public String getAlternativeBodyHeader()
public void setAlternativeBodyHeader(String alternativeBodyHeader)
public boolean isUseInlineAttachments()
public void setUseInlineAttachments(boolean useInlineAttachments)
public boolean isIgnoreUnsupportedCharset()
public void setIgnoreUnsupportedCharset(boolean ignoreUnsupportedCharset)
public boolean isDisconnect()
public void setDisconnect(boolean disconnect)
public boolean isCloseFolder()
public void setCloseFolder(boolean closeFolder)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
public String getCopyTo()
public void setCopyTo(String copyTo)
public boolean isPeek()
public void setPeek(boolean peek)
public boolean isSkipFailedMessage()
public void setSkipFailedMessage(boolean skipFailedMessage)
public boolean isHandleFailedMessage()
public void setHandleFailedMessage(boolean handleFailedMessage)
Apache Camel