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
implements Runnable
Helper class for wrapping socket based tasks.
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 void doit()
throws IOException
Perform the logic.
getSocket
protected Socket getSocket()
Return the socket.
- 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.
newSocket
- The new socket.
Copyright (c) 1999-2005 - Apache Software Foundation