org.apache.xmlrpc.webserver
Class ServletConnection
java.lang.Object
org.apache.xmlrpc.webserver.ServletConnection
- All Implemented Interfaces:
- org.apache.xmlrpc.util.ThreadPool.InterruptableTask, org.apache.xmlrpc.util.ThreadPool.Task
public class ServletConnection
- extends java.lang.Object
- implements org.apache.xmlrpc.util.ThreadPool.InterruptableTask
ServletWebServer's
ThreadPool.Task
for handling a single
servlet connection.
Constructor Summary |
ServletConnection(javax.servlet.http.HttpServlet pServlet,
java.net.Socket pSocket)
Creates a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servlet
private final javax.servlet.http.HttpServlet servlet
socket
private final java.net.Socket socket
request
private final HttpServletRequestImpl request
response
private final HttpServletResponseImpl response
shuttingDown
private boolean shuttingDown
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
run
public void run()
throws java.lang.Throwable
- Specified by:
run
in interface org.apache.xmlrpc.util.ThreadPool.Task
- Throws:
java.lang.Throwable
shutdown
public void shutdown()
throws java.lang.Throwable
- Specified by:
shutdown
in interface org.apache.xmlrpc.util.ThreadPool.InterruptableTask
- Throws:
java.lang.Throwable