Class SendMailAction
- java.lang.Object
-
- org.nuxeo.ecm.platform.mail.action.SendMailAction
-
- All Implemented Interfaces:
MessageAction
public class SendMailAction extends Object implements MessageAction
Action to answer the mail. It expects the text of the answer to be in the context under the "message" key.- Author:
- Alexandre Russel
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.mail.Sessionsessionprotected StringtextMessage
-
Constructor Summary
Constructors Constructor Description SendMailAction(javax.mail.Session session, String textMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(ExecutionContext context)Executes one action.voidreset(ExecutionContext context)
-
-
-
Field Detail
-
session
protected final javax.mail.Session session
-
textMessage
protected final String textMessage
-
-
Constructor Detail
-
SendMailAction
public SendMailAction(javax.mail.Session session, String textMessage)
-
-
Method Detail
-
execute
public boolean execute(ExecutionContext context) throws javax.mail.MessagingException
Description copied from interface:MessageActionExecutes one action.If it returns false, the following actions from the pipe are not executed.
- Specified by:
executein interfaceMessageAction- Throws:
javax.mail.MessagingException- See Also:
ExecutionContext
-
reset
public void reset(ExecutionContext context)
- Specified by:
resetin interfaceMessageAction
-
-