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 SummaryFields Modifier and Type Field Description protected javax.mail.Sessionsessionprotected StringtextMessage
 - 
Constructor SummaryConstructors Constructor Description SendMailAction(javax.mail.Session session, String textMessage)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(ExecutionContext context)Executes one action.voidreset(ExecutionContext context)
 
- 
- 
- 
Field Detail- 
sessionprotected final javax.mail.Session session 
 - 
textMessageprotected final String textMessage 
 
- 
 - 
Constructor Detail- 
SendMailActionpublic SendMailAction(javax.mail.Session session, String textMessage)
 
- 
 - 
Method Detail- 
executepublic 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 interface- MessageAction
- Throws:
- javax.mail.MessagingException
- See Also:
- ExecutionContext
 
 - 
resetpublic void reset(ExecutionContext context) - Specified by:
- resetin interface- MessageAction
 
 
- 
 
-