Package net.messagevortex.transport.pop3
Class TestPop3Handler
java.lang.Object
net.messagevortex.transport.pop3.TestPop3Handler
- All Implemented Interfaces:
RunningDaemon,Transport,TransportSender
-
Constructor Summary
ConstructorsConstructorDescriptionTestPop3Handler(String section) Constructor starting a POP3 server from the named config section. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendMessage(String address, InputStream os) sends a message on the transport layer.voidShuts this class down.final voidInitializes and starts all threads required to run the daemon.voidStopps all daemon threads and frees all temporary resources.
-
Constructor Details
-
TestPop3Handler
Constructor starting a POP3 server from the named config section.
- Parameters:
section- the configuration section to be used- Throws:
IOException- if server fails to start
-
-
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
-
startDaemon
public final void startDaemon()Description copied from interface:RunningDaemonInitializes and starts all threads required to run the daemon.
- Specified by:
startDaemonin interfaceRunningDaemon
-
stopDaemon
public void stopDaemon()Description copied from interface:RunningDaemonStopps all daemon threads and frees all temporary resources.
- Specified by:
stopDaemonin interfaceRunningDaemon
-
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
-