Package davmail.smtp
Class SmtpServer
java.lang.Object
java.lang.Thread
davmail.AbstractServer
davmail.smtp.SmtpServer
- All Implemented Interfaces:
Runnable
SMTP server, handle message send requests.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class davmail.AbstractServer
nosslFlagFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConnectionHandler(Socket clientSocket) Create a connection handler for the current listener.Get server protocol name (SMTP, POP, IMAP, ...).Methods inherited from class davmail.AbstractServer
bind, close, getKeyManagers, getPort, getTrustManagers, runMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORTDefault SMTP Caldav port- See Also:
-
-
Constructor Details
-
SmtpServer
public SmtpServer(int port) Create a ServerSocket to listen for connections. Start the thread.- Parameters:
port- smtp port
-
-
Method Details
-
getProtocolName
Description copied from class:AbstractServerGet server protocol name (SMTP, POP, IMAP, ...).- Specified by:
getProtocolNamein classAbstractServer- Returns:
- server protocol name
-
createConnectionHandler
Description copied from class:AbstractServerCreate a connection handler for the current listener.- Specified by:
createConnectionHandlerin classAbstractServer- Parameters:
clientSocket- client socket- Returns:
- connection handler
-