public class TestSmtpHandler extends AbstractDaemon implements Transport, Runnable
Constructor and Description |
---|
TestSmtpHandler(String section)
Coinstructor getting parameters from named config section.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Thread runner.
|
void |
sendMessage(String address,
InputStream os)
sends a message on the transport layer.
|
void |
shutdownDaemon()
Shuts this class down.
|
void |
startDaemon()
Initializes and starts all threads required to run the daemon.
|
stopDaemon
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stopDaemon
public TestSmtpHandler(String section) throws IOException
Coinstructor getting parameters from named config section.
section
- name of the config sectionIOException
- if constructor fails to star SMTP serverpublic void run()
Thread runner.
Do not call this methode
FIXME: move to private classpublic final void startDaemon()
RunningDaemon
Initializes and starts all threads required to run the daemon.
startDaemon
in interface RunningDaemon
startDaemon
in class AbstractDaemon
public void shutdownDaemon()
RunningDaemon
Shuts this class down.
This frees all resources and ends all threads for an application or layer shutdown. It is not possible to call start() after running shutdown().
shutdownDaemon
in interface RunningDaemon
shutdownDaemon
in class AbstractDaemon
public void sendMessage(String address, InputStream os) throws IOException
TransportSender
sends a message on the transport layer.
This method is called by the blender layer to send a message.
sendMessage
in interface TransportSender
address
- the string representation of the target address on the transport layeros
- the outputstream providing the messageIOException
- if transport layer was unable to satisfy the requestCopyright © 2023. All rights reserved.