Package com.icegreen.greenmail.pop3
Class Pop3Server
- java.lang.Object
-
- java.lang.Thread
-
- com.icegreen.greenmail.server.AbstractServer
-
- com.icegreen.greenmail.pop3.Pop3Server
-
public class Pop3Server extends AbstractServer
-
-
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 Pop3Server(ServerSetup setup, Managers managers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProtocolHandlercreateProtocolHandler(Socket clientSocket)Create a new, specific protocol handler such as for IMAP.POP3StorecreateStore()Creates 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, 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
-
-
-
-
Constructor Detail
-
Pop3Server
public Pop3Server(ServerSetup setup, Managers managers)
-
-
Method Detail
-
createProtocolHandler
protected ProtocolHandler createProtocolHandler(Socket clientSocket)
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 POP3Store createStore() throws jakarta.mail.NoSuchProviderException
Description copied from class:AbstractServerCreates a new JavaMail store.- Overrides:
createStorein classAbstractServer- Returns:
- a new store.
- Throws:
jakarta.mail.NoSuchProviderException
-
-