Package com.icegreen.greenmail.smtp
Class InterruptableSmtpServer
java.lang.Object
java.lang.Thread
com.icegreen.greenmail.server.AbstractServer
com.icegreen.greenmail.smtp.SmtpServer
com.icegreen.greenmail.smtp.InterruptableSmtpServer
- All Implemented Interfaces:
com.icegreen.greenmail.util.Service
,Runnable
public class InterruptableSmtpServer
extends com.icegreen.greenmail.smtp.SmtpServer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class com.icegreen.greenmail.server.AbstractServer
bindTo, CLIENT_SOCKET_SO_TIMEOUT, log, managers, serverSocket, setup
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionInterruptableSmtpServer
(com.icegreen.greenmail.util.ServerSetup setup, com.icegreen.greenmail.Managers managers) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.icegreen.greenmail.server.ProtocolHandler
createProtocolHandler
(Socket clientSocket) void
setRejectRequests
(boolean rejectRequests) Methods inherited from class com.icegreen.greenmail.server.AbstractServer
closeServerSocket, createSession, createSession, createSession, createStore, getBindTo, getPort, getProtocol, getServerSetup, handleClientSocket, initServerSocket, isRunning, keepOn, openServerSocket, quit, run, setClientSocketTimeout, setRunning, startService, stopService, stopService, toString, waitTillRunning
Methods 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, yield
-
Constructor Details
-
InterruptableSmtpServer
public InterruptableSmtpServer(com.icegreen.greenmail.util.ServerSetup setup, com.icegreen.greenmail.Managers managers)
-
-
Method Details
-
createProtocolHandler
- Overrides:
createProtocolHandler
in classcom.icegreen.greenmail.smtp.SmtpServer
-
setRejectRequests
public void setRejectRequests(boolean rejectRequests)
-