Package net.messagevortex.transport
Class MailServer
java.lang.Object
net.messagevortex.AbstractDaemon
net.messagevortex.transport.MailServer
- All Implemented Interfaces:
RunningDaemon,Transport,TransportSender
-
Constructor Summary
ConstructorsConstructorDescriptionMailServer(String section) Creates a mail server according to the parameters specified. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(String address, InputStream os) 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
-
MailServer
Creates a mail server according to the parameters specified.
- Parameters:
section- the name of the config section- Throws:
IOException- if creation of the mail server fails
-
-
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 layeros- the outputstream providing the message- Throws:
IOException- if transport layer was unable to satisfy the request
-
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
-