org.apache.xmlrpc.webserver

Class ServletConnection

Implemented Interfaces:
ThreadPool.InterruptableTask, ThreadPool.Task

public class ServletConnection
extends java.lang.Object
implements ThreadPool.InterruptableTask

ServletWebServer's ThreadPool.Task for handling a single servlet connection.

Constructor Summary

ServletConnection(HttpServlet pServlet, Socket pSocket)
Creates a new instance.

Method Summary

void
run()
void
shutdown()

Constructor Details

ServletConnection

public ServletConnection(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.

Method Details

run

public void run()
            throws Throwable
Specified by:
run in interface ThreadPool.Task

shutdown

public void shutdown()
            throws Throwable
Specified by:
shutdown in interface ThreadPool.InterruptableTask

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.