Class DefaultHttpServer

  • All Implemented Interfaces:
    HttpServer

    public class DefaultHttpServer
    extends Object
    implements HttpServer
    The default implementation of HTTP Server.
    Author:
    Manfred Riem (mriem@manorrock.com)
    • Field Detail

      • executorService

        protected ExecutorService executorService
        Stores the executor service.
      • serverPort

        protected int serverPort
        Stores the port we are listening on.
      • serverAcceptorThread

        protected Thread serverAcceptorThread
        Stores the server acceptor thread.
      • serverSocket

        protected ServerSocket serverSocket
        Stores the server socket.
      • serverStopRequest

        protected boolean serverStopRequest
        Stores the server stop request.
      • soTimeout

        protected int soTimeout
        Stores the SO_TIMEOUT.
      • ssl

        protected boolean ssl
        Stores the SSL flag.
      • threadFactory

        protected ThreadFactory threadFactory
        Stores the thread factory.
    • Constructor Detail

      • DefaultHttpServer

        public DefaultHttpServer()
        Constructor
      • DefaultHttpServer

        public DefaultHttpServer​(int serverPort)
        Constructor.
        Parameters:
        serverPort - the server port.
      • DefaultHttpServer

        public DefaultHttpServer​(int serverPort,
                                 HttpServerProcessor processor,
                                 boolean ssl)
        Constructor
        Parameters:
        serverPort - the server port.
        processor - the HTTP server processor.
        ssl - the SSL flag.
      • DefaultHttpServer

        public DefaultHttpServer​(int serverPort,
                                 HttpServerProcessor processor,
                                 int soTimeout)
        Constructor
        Parameters:
        serverPort - the server port.
        processor - the HTTP server processor.
        soTimeout - the SO_TIMEOUT.