Class SimpleServer

    • Field Detail

      • m_stopped

        protected volatile boolean m_stopped
    • Constructor Detail

      • SimpleServer

        public SimpleServer()
    • Method Detail

      • setBanner

        public void setBanner​(String banner)

        setBanner

        Parameters:
        banner - a String object.
      • getBanner

        public String getBanner()

        getBanner

        Returns:
        a String object.
      • setBannerDelay

        public void setBannerDelay​(int delay)
        Slow down transmission of the banner by a specified number of milliseconds.
      • getInetAddress

        public InetAddress getInetAddress()

        getInetAddress

        Returns:
        InetAddress returns the inetaddress from the serversocket.
      • getLocalPort

        public int getLocalPort()

        getLocalPort

        Returns:
        a int.
      • setThreadSleepLength

        public void setThreadSleepLength​(int timeout)

        setThreadSleepLength

        Parameters:
        timeout - a int.
      • getThreadSleepLength

        public int getThreadSleepLength()

        getThreadSleepLength

        Returns:
        a int.
      • onInit

        protected void onInit()

        onInit

      • dispose

        public void dispose()

        dispose

      • addErrorHandler

        protected void addErrorHandler​(RequestHandler requestHandler)

        addErrorHandler

        Parameters:
        requestHandler - a RequestHandler object.
      • setServerSocket

        public void setServerSocket​(ServerSocket serverSocket)

        setServerSocket

        Parameters:
        serverSocket - a ServerSocket object.
      • setSocket

        public void setSocket​(Socket socket)

        setSocket

        Parameters:
        socket - a Socket object.
      • getSocket

        public Socket getSocket()

        getSocket

        Returns:
        a Socket object.
      • setServerThread

        protected void setServerThread​(Thread serverThread)

        setServerThread

        Parameters:
        serverThread - a Thread object.
      • getServerThread

        protected Thread getServerThread()

        getServerThread

        Returns:
        a Thread object.