
org.subethamail.smtp.internal.server.AcceptAllSessionHandler 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.
package org.subethamail.smtp.internal.server;
import org.subethamail.smtp.server.Session;
import org.subethamail.smtp.server.SessionHandler;
/**
* A {@link SessionHandler} that doesn't perform any real work
*
* @author Diego Salvi
*/
public final class AcceptAllSessionHandler implements SessionHandler {
public static final SessionHandler INSTANCE = new AcceptAllSessionHandler();
private AcceptAllSessionHandler() {
/* Singleton */
super();
}
@Override
public SessionAcceptance accept(Session session) {
return SessionAcceptance.success();
}
@Override
public void onSessionEnd(Session session) {
/* NOP */
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy