Class 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 Detail

      • account

        protected EmailAccount account
        The email account.
      • subject

        protected java.lang.String subject
        The subject.
    • Constructor Detail

      • CliEmailAgent

        public CliEmailAgent()
    • 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.