Package com.icegreen.greenmail.imap
Class ImapServer
java.lang.Object
java.lang.Thread
com.icegreen.greenmail.util.Service
com.icegreen.greenmail.AbstractServer
com.icegreen.greenmail.imap.ImapServer
- All Implemented Interfaces:
Runnable
-
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.AbstractServer
bindTo, handlers, managers, serverSocket, setup
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionImapServer
(ServerSetup setup, Managers managers) ImapServer
(ServerSetup setup, Managers managers, AtomicReference<Exception> serverOpeningExceptionRef) -
Method Summary
Methods inherited from class com.icegreen.greenmail.AbstractServer
deregisterHandler, getBindTo, getPort, getProtocol, getServerSetup, toString
Methods inherited from class com.icegreen.greenmail.util.Service
destroy, init, keepOn, startService, stopService, stopService, stopService
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
-
Constructor Details
-
ImapServer
-
ImapServer
public ImapServer(ServerSetup setup, Managers managers, AtomicReference<Exception> serverOpeningExceptionRef)
-
-
Method Details
-
openServerSocket
- Overrides:
openServerSocket
in classAbstractServer
- Throws:
IOException
-
quit
public void quit() -
run
public void run()
-