Package com.icegreen.greenmail
Class AbstractServer
java.lang.Object
java.lang.Thread
com.icegreen.greenmail.util.Service
com.icegreen.greenmail.AbstractServer
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ImapServer
,Pop3Server
,SmtpServer
- Since:
- Feb 2, 2006
- Version:
- $Id: $
- Author:
- Wael Chatila
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InetAddress
protected Vector
protected Managers
protected ServerSocket
protected ServerSetup
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deregisterHandler
(Object handler) int
getPort()
protected ServerSocket
toString()
Methods inherited from class com.icegreen.greenmail.util.Service
destroy, init, keepOn, quit, run, 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
-
Field Details
-
bindTo
-
serverSocket
-
handlers
-
managers
-
setup
-
-
Constructor Details
-
AbstractServer
-
-
Method Details
-
openServerSocket
- Throws:
IOException
-
getBindTo
-
getPort
public int getPort() -
getProtocol
-
getServerSetup
-
deregisterHandler
-
toString
-