public static final class SessionHandler.SessionAcceptance extends Object
SessionHandler.accept(Session)| Modifier and Type | Method and Description |
|---|---|
boolean |
accepted() |
int |
errorCode()
If session was accepted then returns 0 else returns the SMTP response code
representing the reason for the session not being accepted.
|
String |
errorMessage()
If session was accepted then returns null else returns the message
representing the reason for the session not being accepted.
|
static SessionHandler.SessionAcceptance |
failure(int code,
String message)
Returns a failed
SessionHandler.accept(Session) result. |
static SessionHandler.SessionAcceptance |
success()
Returns a success
SessionHandler.accept(Session) result. |
public static SessionHandler.SessionAcceptance success()
SessionHandler.accept(Session) result.public static SessionHandler.SessionAcceptance failure(int code, String message)
SessionHandler.accept(Session) result.code - SMTP failure result codemessage - SMTP failure result messagepublic boolean accepted()
public int errorCode()
public String errorMessage()
Copyright © 2006–2024. All rights reserved.