org.subethamail.smtp.MessageHandler Java Examples

The following examples show how to use org.subethamail.smtp.MessageHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MessageHandlerFactoryImpl.java    From mireka with Apache License 2.0 5 votes vote down vote up
@Override
public MessageHandler create(MessageContext ctx) {
    MailTransactionImpl mailTransaction = new MailTransactionImpl(ctx);
    FilterInstances filterInstances =
            filters.createInstanceChain(mailTransaction);
    FilterChainMessageHandler filterChainMessageHandler =
            new FilterChainMessageHandler(filterInstances, mailTransaction);
    return new ErrorHandlerMessageHandler(filterChainMessageHandler);
}
 
Example #2
Source File: SubethaEmailServer.java    From alfresco-repository with GNU Lesser General Public License v3.0 4 votes vote down vote up
public MessageHandler create(MessageContext messageContext)
{
    return new Handler(messageContext);
}
 
Example #3
Source File: SmarterMessageListenerAdapter.java    From subethasmtp with Apache License 2.0 4 votes vote down vote up
public MessageHandler create(MessageContext ctx)
{
	return new Handler(ctx);
}
 
Example #4
Source File: SimpleMessageListenerAdapter.java    From subethasmtp with Apache License 2.0 4 votes vote down vote up
public MessageHandler create(MessageContext ctx)
{
	return new Handler(ctx);
}
 
Example #5
Source File: Session.java    From subethasmtp with Apache License 2.0 4 votes vote down vote up
/**
 * @return the current message handler
 */
public MessageHandler getMessageHandler()
{
	return this.messageHandler;
}
 
Example #6
Source File: ErrorHandlerMessageHandler.java    From mireka with Apache License 2.0 4 votes vote down vote up
public ErrorHandlerMessageHandler(MessageHandler wrappedHandler) {
    this.wrapped = wrappedHandler;
}
 
Example #7
Source File: MockMessageHandlerFactory.java    From entando-components with GNU Lesser General Public License v3.0 4 votes vote down vote up
public MessageHandler create(MessageContext ctx) {
	if (this._messageHandler == null) {
		this._messageHandler = new MockMessageHandler(ctx);
	}
    return _messageHandler;
}
 
Example #8
Source File: MessageHandlerFactoryImpl.java    From keycloak with Apache License 2.0 4 votes vote down vote up
public MessageHandler create(MessageContext ctx) {
    return new Handler(ctx);
}