public class From extends java.lang.Object implements IMessageField
IMessageField| Constructor and Description |
|---|
From() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
GetValue()
Get the value of the field
|
void |
Initialize(java.lang.String Parameter)
Initialize using the parameter from the config file.
|
void |
PassMessages(CMessage parentMessage,
jakarta.mail.Message oMsg)
Called once for each message.
|
void |
SetValue(java.lang.Object newValue)
Called if the value for this field is set externally.
|
void |
Shutdown()
Cleanup any resources you allocated during construction
or operation.
|
void |
Verify()
This function is called once, just after the first time Initialize is called.
|
public void SetValue(java.lang.Object newValue)
IMessageFieldSetValue in interface IMessageFieldnewValue - The new value for this field.public java.lang.Object GetValue()
IMessageFieldGetValue in interface IMessageFieldpublic void PassMessages(CMessage parentMessage, jakarta.mail.Message oMsg)
IMessageFieldPassMessages in interface IMessageFieldparentMessage - Do NOT use the parentMessage in this call.
You can store a reference to it to use later in GetValue, but do not access the
values of any other fields during this function.oMsg - The raw Java Mail message that the parentMessage is based upon
You can freely read from this object, but do not modify it. If it throws a
messaging exception that you cannot handle, you should re-throw it to let
ResponseMaster re-cycle the connection to the mail server.public void Initialize(java.lang.String Parameter)
IConfigurableItemInitialize in interface IConfigurableItemParameter - The parameter from the config file, Frequently, the parameter will be a file name.public void Shutdown()
IConfigurableItemShutdown in interface IConfigurableItempublic void Verify()
IMessageFieldVerify in interface IMessageFieldInvalidMessageFieldName,
IllegalArgumentException