public class ImapServer extends AbstractServer
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT
Default IMAP port
|
nosslFlag
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ImapServer(int port)
Create a ServerSocket to listen for connections.
|
Modifier and Type | Method and Description |
---|---|
AbstractConnection |
createConnectionHandler(Socket clientSocket)
Create a connection handler for the current listener.
|
String |
getProtocolName()
Get server protocol name (SMTP, POP, IMAP, ...).
|
bind, close, getKeyManagers, getPort, getTrustManagers, run
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final int DEFAULT_PORT
public ImapServer(int port)
port
- imap listen port, 143 if not defined (0)public String getProtocolName()
AbstractServer
getProtocolName
in class AbstractServer
public AbstractConnection createConnectionHandler(Socket clientSocket)
AbstractServer
createConnectionHandler
in class AbstractServer
clientSocket
- client socketCopyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.