Package net.messagevortex.transport
Class SmtpImapServer
java.lang.Object
net.messagevortex.AbstractDaemon
net.messagevortex.transport.SmtpImapServer
- All Implemented Interfaces:
RunningDaemon,Transport,TransportSender
-
Constructor Summary
ConstructorsConstructorDescriptionSmtpImapServer(String section) Creates a comboo of local SMTP and IMAP server as listener for a client. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(String address, InputStream is) sends a message on the transport layer.voidShuts this class down.Methods inherited from class net.messagevortex.AbstractDaemon
startDaemon, stopDaemonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.messagevortex.RunningDaemon
startDaemon, stopDaemon
-
Constructor Details
-
SmtpImapServer
Creates a comboo of local SMTP and IMAP server as listener for a client.
- Parameters:
section- the configuration section to be used- Throws:
IOException- if unable to bind interfaces
-
-
Method Details
-
sendMessage
Description copied from interface:TransportSendersends a message on the transport layer.
This method is called by the blender layer to send a message.
- Specified by:
sendMessagein interfaceTransportSender- Parameters:
address- the string representation of the target address on the transport layeris- the outputstream providing the message
-
shutdownDaemon
public void shutdownDaemon()Description copied from interface:RunningDaemonShuts 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().
- Specified by:
shutdownDaemonin interfaceRunningDaemon- Overrides:
shutdownDaemonin classAbstractDaemon
-