public class SmtpImapServer extends AbstractDaemon implements Transport
Constructor and Description |
---|
SmtpImapServer(String section)
Creates a comboo of local SMTP and IMAP server as listener for a client.
|
Modifier and Type | Method and Description |
---|---|
void |
sendMessage(String address,
InputStream is)
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 SmtpImapServer(String section) throws IOException
Creates a comboo of local SMTP and IMAP server as listener for a client.
section
- the configuration section to be usedIOException
- if unable to bind interfacespublic void sendMessage(String address, InputStream is)
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 layeris
- the outputstream providing the messagepublic 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.