Class ServletConnection

    • Field Detail

      • servlet

        private final javax.servlet.http.HttpServlet servlet
      • socket

        private final java.net.Socket socket
      • shuttingDown

        private boolean shuttingDown
    • Constructor Detail

      • ServletConnection

        public ServletConnection​(javax.servlet.http.HttpServlet pServlet,
                                 java.net.Socket pSocket)
                          throws java.io.IOException
        Creates a new instance.
        Parameters:
        pServlet - The servlet, which ought to handle the request.
        pSocket - The socket, to which the client is connected.
        Throws:
        java.io.IOException
    • Method Detail

      • run

        public void run()
                 throws java.lang.Throwable
        Description copied from interface: ThreadPool.Task
        Performs the task.
        Specified by:
        run in interface ThreadPool.Task
        Throws:
        java.lang.Throwable - The task failed, and the worker thread won't be used again.