org.apache.commons.httpclient.protocol
Class ControllerThreadSocketFactory.SocketTask
java.lang.Object
org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory.SocketTask
- ControllerThreadSocketFactory
- Runnable
public static abstract class ControllerThreadSocketFactory.SocketTask
extends java.lang.Object
implements Runnable
Helper class for wrapping socket based tasks.
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.
|
doit
public abstract void doit()
throws IOException
Perform the logic.
getSocket
protected Socket getSocket()
Return 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.
newSocket
- The new socket.
Copyright (c) 1999-2005 - Apache Software Foundation