org.apache.commons.httpclient.protocol

Class ControllerThreadSocketFactory.SocketTask

public abstract static class ControllerThreadSocketFactory.SocketTask extends Object implements Runnable

Helper class for wrapping socket based tasks.
Method Summary
abstract voiddoit()
Perform the logic.
protected SocketgetSocket()
Return the socket.
voidrun()
Execute the logic in this object and keep track of any exceptions.
protected voidsetSocket(Socket newSocket)
Set the socket.

Method Detail

doit

public abstract void doit()
Perform the logic.

Throws: IOException If an IO problem occurs

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