Package jadex.platform.service.cli
Class CliEmailAgent
- java.lang.Object
-
- jadex.platform.service.cli.CliEmailAgent
-
public class CliEmailAgent extends java.lang.Object
The 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 Summary
Fields Modifier and Type Field Description protected EmailAccount
account
The email account.protected IInternalAccess
agent
The agent.protected java.lang.String
subject
The subject.
-
Constructor Summary
Constructors Constructor Description CliEmailAgent()
-
Method Summary
All 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
-
agent
protected IInternalAccess agent
The agent.
-
account
protected EmailAccount account
The email account.
-
subject
protected java.lang.String subject
The subject.
-
-
Method Detail
-
body
public IFuture<java.lang.Void> body()
The agent body.
-
receivedCommandEmail
protected IFuture<Email> receivedCommandEmail(Email eml)
Called when a command email was received.
-
executeCommands
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.
-
-