Package org.apache.xmlrpc.webserver
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 HttpServletRequestImpl
private final HttpServletResponseImpl
private final javax.servlet.http.HttpServlet
private boolean
private 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.Task
Performs the task.- Specified by:
run
in interfaceThreadPool.Task
- Throws:
Throwable
- The task failed, and the worker thread won't be used again.
-
shutdown
Description copied from interface:ThreadPool.InterruptableTask
Interrupts the task.- Specified by:
shutdown
in interfaceThreadPool.InterruptableTask
- Throws:
Throwable
- Shutting down the task failed.
-