autohit.call.modules
Class SimpleSmtpModule

java.lang.Object
  extended byautohit.call.modules.Module
      extended byautohit.call.modules.SimpleSmtpModule

public class SimpleSmtpModule
extends Module

Simple SMTP module. There is a client/per module at this time. start(address,optional{port}) start an SMTP session
login(optional{hostname}) login to peer
sender(address) set the sender with address
addsenderrelay(address) add to the sender relay path
senderrelay() set the sender with sender relay path. clear the accumulated relay path.
recipient(address) add a recipient with address
addrecipientrelay(address) add to the recipient relay path
newrecipientrelay(address) start a new recipient relay path
recipientrelay() add a recipient with recipient relay path. clear the accumulated relay path.
send(text) send message from text.
senduni(uniobj) send message from universe object.
senduniscrub(uniobj) send message from universe object. scrub it first with variable replacements
reset() reset the smtp state.
done() complete a session. It will logout and close.
mailit(from,to,text,host,optional{port}) convenience method for sending small message. mailituni(from,to,uniobj,host,optional{port}) convenience method for sending small message.

Version:
1.0 Version HistoryEPG - Initial - 11Aug03
Author:
Erich P. Gatejen

Field Summary
 
Fields inherited from class autohit.call.modules.Module
myName, visCore, visLogger, visSC, visUniverse
 
Constructor Summary
SimpleSmtpModule()
          Constructor
 
Method Summary
 java.lang.Object execute_chain(java.lang.String name)
          Execute a named method.
protected  void free_chain()
          Allow the subclass a chance to cleanup on free.
protected  java.lang.String instantiation_chain()
          Allow the subclass a chance to initialize.
 
Methods inherited from class autohit.call.modules.Module
buildException, buildException, debug, desired, desiredType, error, errorparam, execute, fault, fault, free, getParam, getPersist, instance, isDebugging, log, optional, optionalType, required, requiredType, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSmtpModule

public SimpleSmtpModule()
Constructor

Method Detail

execute_chain

public java.lang.Object execute_chain(java.lang.String name)
                               throws CallException
Execute a named method. You must implement this method. You can call any of the helpers for data and services. The returned object better be a string (for now).

Specified by:
execute_chain in class Module
Parameters:
name - name of the method
Throws:
CallException
See Also:
NOPair

instantiation_chain

protected java.lang.String instantiation_chain()
                                        throws CallException
Allow the subclass a chance to initialize. At a minium, an implementor should create an empty method.

Specified by:
instantiation_chain in class Module
Returns:
the name
Throws:
CallException

free_chain

protected void free_chain()
                   throws CallException
Allow the subclass a chance to cleanup on free. At a minium, an implementor should create an empty method.

Specified by:
free_chain in class Module
Throws:
CallException


Test.