public class TestPop3Handler extends Object implements Transport
Constructor and Description |
---|
TestPop3Handler(String section)
Constructor starting a POP3 server from the named config section.
|
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.
|
void |
startDaemon()
Initializes and starts all threads required to run the daemon.
|
void |
stopDaemon()
Stopps all daemon threads and frees all temporary resources.
|
public TestPop3Handler(String section) throws IOException
Constructor starting a POP3 server from the named config section.
section
- the configuration section to be usedIOException
- if server fails to startpublic 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 final void startDaemon()
RunningDaemon
Initializes and starts all threads required to run the daemon.
startDaemon
in interface RunningDaemon
public void stopDaemon()
RunningDaemon
Stopps all daemon threads and frees all temporary resources.
stopDaemon
in interface RunningDaemon
public 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
Copyright © 2023. All rights reserved.