Package jadex.platform.service.cli
Class CliEmailAgent
- java.lang.Object
- 
- jadex.platform.service.cli.CliEmailAgent
 
- 
 public class CliEmailAgent extends java.lang.ObjectThe agent listens on a specified email account for command line emails (must have 'command' in subject). The email has to be signed using the Jadex email sign tool (in JCC). The content of the email is sent to the command line agent for interpretation. The result of the invocation is sent back to the issuer.
- 
- 
Field SummaryFields Modifier and Type Field Description protected EmailAccountaccountThe email account.protected IInternalAccessagentThe agent.protected java.lang.StringsubjectThe subject.
 - 
Constructor SummaryConstructors Constructor Description CliEmailAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>body()The agent body.protected IFuture<Email>executeCommands(ICliService cliser, java.util.Iterator<java.lang.String> cmds, Email eml, java.lang.StringBuffer content, java.lang.StringBuffer subject)Execute a number of commands.protected IFuture<Email>receivedCommandEmail(Email eml)Called when a command email was received.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
accountprotected EmailAccount account The email account.
 - 
subjectprotected java.lang.String subject The subject.
 
- 
 - 
Method Detail- 
bodypublic IFuture<java.lang.Void> body() The agent body.
 - 
receivedCommandEmailprotected IFuture<Email> receivedCommandEmail(Email eml) Called when a command email was received.
 - 
executeCommandsprotected IFuture<Email> executeCommands(ICliService cliser, java.util.Iterator<java.lang.String> cmds, Email eml, java.lang.StringBuffer content, java.lang.StringBuffer subject) Execute a number of commands.
 
- 
 
-