autohit.call.modules
Class TolerantSmtpModule
java.lang.Object
autohit.call.modules.Module
autohit.call.modules.TolerantSmtpModule
- public class TolerantSmtpModule
- extends Module
Tolerant SMTP module. There is a client/per module at this time. This one
supports streaming and will not throw faults on every error.
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 History
EPG - Initial, branched from SimpleSmtpModule - 25 Dec03
- Author:
- Erich P. Gatejen
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 |
TolerantSmtpModule
public TolerantSmtpModule()
- Constructor
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.