org.nuxeo.ecm.platform.mail.action
Class SendMailAction
java.lang.Object
org.nuxeo.ecm.platform.mail.action.SendMailAction
- All Implemented Interfaces:
- MessageAction
public class SendMailAction
- extends java.lang.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
Constructor Summary |
SendMailAction(javax.mail.Session session,
java.lang.String textMessage)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendMailAction
public SendMailAction(javax.mail.Session session,
java.lang.String textMessage)
execute
public boolean execute(ExecutionContext context)
throws java.lang.Exception
- Description copied from interface:
MessageAction
- Executes one action.
If it returns false, the following actions from the pipe are not executed.
- Specified by:
execute
in interface MessageAction
- Throws:
java.lang.Exception
- See Also:
ExecutionContext
reset
public void reset(ExecutionContext context)
throws java.lang.Exception
- Specified by:
reset
in interface MessageAction
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.