public class MailEventMessenger extends Object implements EventMessengerInterface, EventHistoryListener
DISABLED, EVENT_FILTER
Constructor and Description |
---|
MailEventMessenger()
Creates a new MailEventMessenger.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
The EventMessenger should do cleaning up it needs before it dies.
|
String[] |
getItems()
Gets the name of the items that should be in the ini-file for this event messenger.
|
String |
getLastError(boolean reset)
Method to access the latest error.
|
String |
getName()
Gets corresponding name of this class in the ini-file
|
int |
getSendState()
Return our send state
0=started, 1=stopped, 2=disabled, 3=error
|
void |
loadIniParams(IniFile ini)
Reads the MailEventMessengers section in the server.ini.
|
void |
processEvent(ServerEvent event)
A new server event has been processed by the event exit.
|
boolean |
setSendState(int flag)
0 = start, 1 = stopp, 2 = disable
General: If our internal state equals the flag, do nothing.
|
public MailEventMessenger()
It creates a new SendMail instance, that will be kept alive until somebody calls it's dispose method (hopefully it will be the EventManager that does it).
public void loadIniParams(IniFile ini)
loadIniParams
in interface EventMessengerInterface
ini
- The ini file.public void processEvent(ServerEvent event)
processEvent
in interface EventHistoryListener
public void dispose()
dispose
in interface EventMessengerInterface
public String[] getItems()
getItems
in interface EventMessengerInterface
public String getName()
getName
in interface EventMessengerInterface
public int getSendState()
getSendState
in interface EventMessengerInterface
public boolean setSendState(int flag)
setSendState
in interface EventMessengerInterface
public String getLastError(boolean reset)
EventMessengerInterface
getLastError
in interface EventMessengerInterface
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.