public class MailServer extends AbstractDaemon implements Transport
Constructor and Description |
---|
MailServer(String section)
Creates a mail server according to the parameters specified.
|
Modifier and Type | Method and Description |
---|---|
void |
sendMessage(String address,
InputStream os)
sends a message on the transport layer.
|
void |
shutdownDaemon()
Shuts this class down.
|
startDaemon, stopDaemon
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startDaemon, stopDaemon
public MailServer(String section) throws IOException
Creates a mail server according to the parameters specified.
section
- the name of the config sectionIOException
- if creation of the mail server failspublic 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 requestpublic 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
Copyright © 2023. All rights reserved.