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.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
Constructors Constructor Description InterruptableSmtpServer(com.icegreen.greenmail.util.ServerSetup setup, com.icegreen.greenmail.Managers managers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
-
-
-
-
Method Detail
-
createProtocolHandler
protected com.icegreen.greenmail.server.ProtocolHandler createProtocolHandler(Socket clientSocket)
- Overrides:
createProtocolHandler
in classcom.icegreen.greenmail.smtp.SmtpServer
-
setRejectRequests
public void setRejectRequests(boolean rejectRequests)
-
-