public interface IMessageField extends IConfigurableItem
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
GetValue()
Get the value of the field
|
void |
PassMessages(CMessage parentMessage,
jakarta.mail.Message javaMailMsg)
Called once for each message.
|
void |
SetValue(java.lang.Object newValue)
Called if the value for this field is set externally.
|
void |
Verify()
This function is called once, just after the first time Initialize is called.
|
Initialize, Shutdownjava.lang.Object GetValue()
void SetValue(java.lang.Object newValue)
newValue - The new value for this field.void PassMessages(CMessage parentMessage, jakarta.mail.Message javaMailMsg) throws jakarta.mail.MessagingException
parentMessage - 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.javaMailMsg - 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.jakarta.mail.MessagingException - if there is a problem accessing the javaMailMsgvoid Verify()
throws InvalidMessageFieldName,
java.lang.IllegalArgumentException
InvalidMessageFieldName - if it depends on a field that isn't available.java.lang.IllegalArgumentException - if the parameter passed earlier is invalid.InvalidMessageFieldName,
IllegalArgumentException