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
MessageAction
If it returns false, the following actions from the pipe are not executed.
execute
in interface MessageAction
javax.mail.MessagingException
ExecutionContext
public void reset(ExecutionContext context)
reset
in interface MessageAction
Copyright © 2018 Nuxeo. All rights reserved.