public final class AcceptAllSessionHandler extends Object implements SessionHandler
SessionHandler that doesn't perform any real workSessionHandler.SessionAcceptance| Modifier and Type | Field and Description |
|---|---|
static SessionHandler |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
SessionHandler.SessionAcceptance |
accept(Session session)
This method is invoked on a session creation, before sending the SMTP greeting and can react rejecting
the session.
|
void |
onSessionEnd(Session session)
This method is invoked on session close.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptAll, limitConcurrentSessionsBySourcepublic static final SessionHandler INSTANCE
public SessionHandler.SessionAcceptance accept(Session session)
SessionHandler
Rejected session will be closed and no method SessionHandler.onSessionEnd(Session) will be invoked.
accept in interface SessionHandlersession - newly created session (should never be null)public void onSessionEnd(Session session)
SessionHandleronSessionEnd in interface SessionHandlersession - closing sessionCopyright © 2006–2024. All rights reserved.