public class SendMailAction extends Object implements MessageAction
| Modifier and Type | Field and Description |
|---|---|
protected javax.mail.Session |
session |
protected String |
textMessage |
| Constructor and Description |
|---|
SendMailAction(javax.mail.Session session,
String textMessage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(ExecutionContext context)
Executes one action.
|
void |
reset(ExecutionContext context) |
protected final javax.mail.Session session
protected final String textMessage
public SendMailAction(javax.mail.Session session, String textMessage)
public boolean execute(ExecutionContext context) throws javax.mail.MessagingException
MessageActionIf it returns false, the following actions from the pipe are not executed.
execute in interface MessageActionjavax.mail.MessagingExceptionExecutionContextpublic void reset(ExecutionContext context)
reset in interface MessageActionCopyright © 2018 Nuxeo. All rights reserved.