
org.subethamail.smtp.MessageHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subethasmtp Show documentation
Show all versions of subethasmtp Show documentation
A fork of a fork (!) of SubEtha, an easy-to-use server-side SMTP library for Java.
/*
* $Id$
* $URL$
*/
package org.subethamail.smtp;
/**
* The primary interface to be implemented by clients of the SMTP library.
* This factory is called for every message to be exchanged in an SMTP
* conversation. If multiple messages are transmitted in a single connection
* (via RSET), multiple handlers will be created from this factory.
*
* @author Jeff Schnitzer
*/
public interface MessageHandlerFactory
{
/**
* Called for the exchange of a single message during an SMTP conversation.
*
* @param ctx provides information about the client.
*/
MessageHandler create(MessageContext ctx);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy