Package org.subethamail.smtp.helper
Class SimpleMessageListenerAdapter
java.lang.Object
org.subethamail.smtp.helper.SimpleMessageListenerAdapter
- All Implemented Interfaces:
MessageHandlerFactory
MessageHandlerFactory implementation which adapts to a collection of
MessageListeners. This allows us to preserve the old, convenient
interface.
- Author:
- Jeff Schnitzer
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes this factory with the listeners.SimpleMessageListenerAdapter(Collection<SimpleMessageListener> listeners, int dataDeferredSize) Initializes this factory with the listeners.Initializes this factory with a single listener. -
Method Summary
Modifier and TypeMethodDescriptioncreate(MessageContext ctx) Called for the exchange of a single message during an SMTP conversation.
-
Constructor Details
-
SimpleMessageListenerAdapter
Initializes this factory with a single listener. Default data deferred size is 5 megs. -
SimpleMessageListenerAdapter
Initializes this factory with the listeners. Default data deferred size is 5 megs. -
SimpleMessageListenerAdapter
public SimpleMessageListenerAdapter(Collection<SimpleMessageListener> listeners, int dataDeferredSize) Initializes this factory with the listeners.- Parameters:
dataDeferredSize- The server will buffer incoming messages to disk when they hit this limit in the DATA received.
-
-
Method Details
-
create
Description copied from interface:MessageHandlerFactoryCalled for the exchange of a single message during an SMTP conversation.- Specified by:
createin interfaceMessageHandlerFactory- Parameters:
ctx- provides information about the client.
-