|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.subethamail.smtp.server.MessageListenerAdapter
public class MessageListenerAdapter
MessageHandlerFactory implementation which adapts to a collection of MessageListeners. This allows us to preserve the old, convenient interface.
Constructor Summary | |
---|---|
MessageListenerAdapter(java.util.Collection<MessageListener> listeners)
Initializes this factory with the listeners. |
Method Summary | |
---|---|
MessageHandler |
create(MessageContext ctx)
Called for the exchange of a single message during an SMTP conversation. |
AuthenticationHandler |
getAuthenticationHandler()
Holds the AuthenticationHandler instantiation logic. |
AuthenticationHandlerFactory |
getAuthenticationHandlerFactory()
Returns the auth handler factory |
void |
setAuthenticationHandlerFactory(AuthenticationHandlerFactory authenticationHandlerFactory)
Sets the auth handler factory. |
void |
setMessageHandlerImpl(java.lang.Class<? extends AbstractMessageHandler> impl)
Sets the AbstractMessageHandler implementation to use when creating the
MessageHandler . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageListenerAdapter(java.util.Collection<MessageListener> listeners)
Method Detail |
---|
public MessageHandler create(MessageContext ctx)
MessageHandlerFactory
create
in interface MessageHandlerFactory
ctx
- provides information about the client.public void setMessageHandlerImpl(java.lang.Class<? extends AbstractMessageHandler> impl)
AbstractMessageHandler
implementation to use when creating the
MessageHandler
.
public AuthenticationHandlerFactory getAuthenticationHandlerFactory()
public void setAuthenticationHandlerFactory(AuthenticationHandlerFactory authenticationHandlerFactory)
public AuthenticationHandler getAuthenticationHandler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |