|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailTrigger
Monitors an email server for incoming mail and fires when email arrives.
The Mail Trigger returns its result in the flow context variable "RESULT". The following table contains more information on accessing and using the result.Flow Context Variable | Field | Java Type | Description |
---|---|---|---|
RESULT | attachments | java.util.List<MailTrigger.MailAttachment > | The file attachments in the mail message. |
RESULT | body | java.lang.String | The body of the mail message. |
RESULT | cc_addresses | java.util.List<java.lang.String> | The carbon copy recipients of the mail message. |
RESULT | content_type | MailContentType | The content type of the mail message. |
RESULT | from_addresses | java.util.List<java.lang.String> | The senders of the mail message. |
RESULT | reply_to_addresses | java.util.List<java.lang.String> | The reply-to addresses of the mail message. |
RESULT | sent_date | java.util.Date | The Date the mail message was sent. |
RESULT | size | int | The size of the mail message. |
RESULT | status_flags | javax.mail.Flags | Status flags for the mail message. |
RESULT | subject | java.lang.String | The subject of the mail message. |
RESULT | to_addresses | java.util.List<java.lang.String> | The recipients of the mail message. |
Nested Class Summary | |
---|---|
static class |
MailTrigger.Mail_Attachment
Deprecated. Use MailAttachment instead. Deprecated in Flux 7.2. Will be removed in Flux 8.0. |
static class |
MailTrigger.Mail_Trigger_Result
Deprecated. Use MailTriggerResult instead. Deprecated in Flux 7.2. Will be removed in Flux 8.0. |
static class |
MailTrigger.MailAttachment
Represents a file attachment to an email message. |
static class |
MailTrigger.MailTriggerResult
The result when a mail trigger fires. |
Method Summary | |
---|---|
boolean |
getDeleteProcessedMessage()
Returns whether a processed email is automatically deleted after control returns to the mail trigger. |
java.lang.String |
getImapFolder()
Returns the name of the IMAP folder that is checked for email messages. |
java.lang.String |
getImapFolderCopyDestination()
Returns the name of an IMAP folder, if any, to which a processed email is copied when the mail trigger fires. |
java.lang.String |
getPassword()
Returns the password to access the mail server. |
java.lang.String |
getPollingDelay()
Returns a time expression that specifies how long the mail trigger waits to poll the mail server for new email messages. |
int |
getPort()
Returns the mail server port. |
MailProtocol |
getProtocol()
Returns the mail protocol used to communicate with the mail server. |
java.lang.String |
getServer()
Returns the host name of the email server. |
boolean |
getSsl()
Returns whether or not this action will use SSL to connect to the mail server. |
java.lang.String |
getUsername()
Returns the username to access the mail server. |
void |
setDeleteProcessedMessage(boolean deleteProcessedMessage)
Sets whether a processed email is automatically deleted after control returns to the mail trigger. |
void |
setImapFolder(java.lang.String imapFolder)
Sets the name of the IMAP folder that is checked for email messages. |
void |
setImapFolderCopyDestination(java.lang.String imapFolderCopyDestination)
Sets the name of an IMAP folder, if any, to which a processed email is copied when the mail trigger fires. |
void |
setPassword(java.lang.String password)
Sets the password to access the mail server. |
void |
setPollingDelay(java.lang.String timeExpression)
Sets a time expression that specifies how long the mail trigger waits to poll the mail server for new email messages. |
void |
setPort(int port)
Sets the mail server port. |
void |
setProtocol(MailProtocol mailProtocol)
Sets the mail protocol used to communicate with the mail server. |
void |
setServer(java.lang.String server)
Sets the host name of the email server. |
void |
setSsl(boolean ssl)
Sets whether or not to use SSL for the connection to the mail server. |
void |
setUsername(java.lang.String username)
Sets the username to access the mail server. |
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
---|
getRuntimeDataMap, setRuntimeDataMap |
Method Detail |
---|
boolean getDeleteProcessedMessage()
java.lang.String getImapFolder()
java.lang.String getImapFolderCopyDestination()
java.lang.String getPassword()
java.lang.String getPollingDelay()
int getPort()
MailProtocol getProtocol() throws EngineException
EngineException
- If a system error occurs.java.lang.String getServer()
boolean getSsl()
java.lang.String getUsername()
void setDeleteProcessedMessage(boolean deleteProcessedMessage)
deleteProcessedMessage
- Whether a processed email is automatically
deleted after control returns to the mail
trigger.void setImapFolder(java.lang.String imapFolder)
imapFolder
- The name of the IMAP folder that is checked for email
messages.void setImapFolderCopyDestination(java.lang.String imapFolderCopyDestination)
imapFolderCopyDestination
- The name of an IMAP folder, if any, to
which a processed email is copied when the
mail trigger fires. May return null.void setPassword(java.lang.String password)
password
- The password to access the mail server.void setPollingDelay(java.lang.String timeExpression)
timeExpression
- A time expression that specifies how long the mail
trigger waits to poll the mail server for new email
messages.void setPort(int port)
port
- The mail server port.void setProtocol(MailProtocol mailProtocol)
mailProtocol
- The mail protocol used to communicate with the mail
server.void setServer(java.lang.String server)
server
- The host name of the email server.void setSsl(boolean ssl)
ssl
- Whether or not to use SSL for the connection to the mail server.void setUsername(java.lang.String username)
username
- The username to access the mail server.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |