Class AbstractServer

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    ImapServer, Pop3Server, SmtpServer

    public abstract class AbstractServer
    extends Service
    Since:
    Feb 2, 2006
    Version:
    $Id: $
    Author:
    Wael Chatila
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.net.InetAddress bindTo  
      protected java.util.Vector handlers  
      protected Managers managers  
      protected java.net.ServerSocket serverSocket  
      protected ServerSetup setup  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deregisterHandler​(java.lang.Object handler)  
      java.lang.String getBindTo()  
      int getPort()  
      java.lang.String getProtocol()  
      ServerSetup getServerSetup()  
      protected java.net.ServerSocket openServerSocket()  
      java.lang.String toString()  
      • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • bindTo

        protected java.net.InetAddress bindTo
      • serverSocket

        protected java.net.ServerSocket serverSocket
      • handlers

        protected java.util.Vector handlers
    • Method Detail

      • openServerSocket

        protected java.net.ServerSocket openServerSocket()
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getBindTo

        public java.lang.String getBindTo()
      • getPort

        public int getPort()
      • getProtocol

        public java.lang.String getProtocol()
      • deregisterHandler

        public void deregisterHandler​(java.lang.Object handler)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Thread