|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.subethamail.smtp.helper.SimpleMessageListenerAdapter
public class SimpleMessageListenerAdapter
MessageHandlerFactory implementation which adapts to a collection of MessageListeners. This allows us to preserve the old, convenient interface.
| Constructor Summary | |
|---|---|
SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners)
Initializes this factory with the listeners. |
|
SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners,
int dataDeferredSize)
Initializes this factory with the listeners. |
|
SimpleMessageListenerAdapter(SimpleMessageListener listener)
Initializes this factory with a single listener. |
|
| Method Summary | |
|---|---|
MessageHandler |
create(MessageContext ctx)
Called for the exchange of a single message during an SMTP conversation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleMessageListenerAdapter(SimpleMessageListener listener)
public SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners)
public SimpleMessageListenerAdapter(java.util.Collection<SimpleMessageListener> listeners,
int dataDeferredSize)
dataDeferredSize - The server will buffer
incoming messages to disk when they hit this limit in the
DATA received.| Method Detail |
|---|
public MessageHandler create(MessageContext ctx)
MessageHandlerFactory
create in interface MessageHandlerFactoryctx - provides information about the client.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||