Class ServletConnection
java.lang.Object
org.apache.xmlrpc.webserver.ServletConnection
- All Implemented Interfaces:
ThreadPool.InterruptableTask, ThreadPool.Task
ServletWebServer's
ThreadPool.Task for handling a single
servlet connection.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpServletRequestImplprivate final HttpServletResponseImplprivate final javax.servlet.http.HttpServletprivate booleanprivate final Socket -
Constructor Summary
ConstructorsConstructorDescriptionServletConnection(javax.servlet.http.HttpServlet pServlet, Socket pSocket) Creates a new instance. -
Method Summary
-
Field Details
-
servlet
private final javax.servlet.http.HttpServlet servlet -
socket
-
request
-
response
-
shuttingDown
private boolean shuttingDown
-
-
Constructor Details
-
ServletConnection
public ServletConnection(javax.servlet.http.HttpServlet pServlet, Socket pSocket) throws 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:
IOException
-
-
Method Details
-
run
Description copied from interface:ThreadPool.TaskPerforms the task.- Specified by:
runin interfaceThreadPool.Task- Throws:
Throwable- The task failed, and the worker thread won't be used again.
-
shutdown
Description copied from interface:ThreadPool.InterruptableTaskInterrupts the task.- Specified by:
shutdownin interfaceThreadPool.InterruptableTask- Throws:
Throwable- Shutting down the task failed.
-