org.apache.commons.httpclient.protocol

Class ControllerThreadSocketFactory.SocketTask

Enclosing Class:
ControllerThreadSocketFactory
Implemented Interfaces:
Runnable

public static abstract class ControllerThreadSocketFactory.SocketTask
extends java.lang.Object
implements Runnable

Helper class for wrapping socket based tasks.

Method Summary

abstract void
doit()
Perform the logic.
protected Socket
getSocket()
Return the socket.
void
run()
Execute the logic in this object and keep track of any exceptions.
protected void
setSocket(Socket newSocket)
Set the socket.

Method Details

doit

public abstract void doit()
            throws IOException
Perform the logic.

getSocket

protected Socket getSocket()
Return the socket.
Returns:
Socket The socket.

run

public void run()
Execute the logic in this object and keep track of any exceptions.

setSocket

protected void setSocket(Socket newSocket)
Set the socket.
Parameters:
newSocket - The new socket.

Copyright (c) 1999-2005 - Apache Software Foundation