Package com.icegreen.greenmail.imap
Class ImapServer
java.lang.Object
java.lang.Thread
com.icegreen.greenmail.server.AbstractServer
com.icegreen.greenmail.imap.ImapServer
-
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, setupFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProtocolHandlercreateProtocolHandler(Socket clientSocket) Create a new, specific protocol handler such as for IMAP.org.eclipse.angus.mail.imap.IMAPStoreCreates a new JavaMail store.Methods inherited from class com.icegreen.greenmail.server.AbstractServer
closeServerSocket, createSession, createSession, createSession, getBindTo, getPort, getProtocol, getServerSetup, handleClientSocket, initServerSocket, isRunning, keepOn, openServerSocket, quit, run, setClientSocketTimeout, setRunning, startService, stopService, stopService, toString, waitTillRunningMethods 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
-
-
Method Details
-
createProtocolHandler
Description copied from class:AbstractServerCreate a new, specific protocol handler such as for IMAP.- Specified by:
createProtocolHandlerin classAbstractServer- Parameters:
clientSocket- the client socket to use.- Returns:
- the new protocol handler.
-
createStore
public org.eclipse.angus.mail.imap.IMAPStore createStore() throws jakarta.mail.NoSuchProviderExceptionDescription copied from class:AbstractServerCreates a new JavaMail store.- Overrides:
createStorein classAbstractServer- Returns:
- a new store.
- Throws:
jakarta.mail.NoSuchProviderException
-